Last post Aug 11, 2010 06:14 AM by ignatandrei
Aug 11, 2010 05:21 AM|mloobo|LINK
My question is: When should i use ViewModels?. I mean, Should I use when a model is related to others?, Right?. When there is no need to use them?.
Thanks for attention.
Aug 11, 2010 06:14 AM|ignatandrei|LINK
You should use where your base classes does not help you.
Suppose you have employee (and list ) and department (and list)
To edit a new employee you should bring together the employee and the list of departments - in order to the user to choose the new department... So a ViewModel is necessary