A view model mvvm design issue
- by Chen Kinnrot
the best way to explain is with example so:
this is the model
public class Person
{
public int age;
public string name;
}
this is the view model
public class PersonVM
{
}
my question is:
should the vm expose the person to the datga template or encapsulate the model properties with his own properties?