Hi guys,
What is the best approach to convert an Item into an ItemViewModel?
Is this even possible?
Thank you, Adrian
Hi Adrian,
I would suggest to use ItemTypeEditor:
var editor = new ItemTypeEditor(); editor.ItemType = itemType; if(editor.GetViewModelValue(itemId) is ItemViewModel model) {...}
Best regards, Vladimir
You must be logged in to post in the forum