218 Views
John Papa goes to great lengths to write an MVVM introduction for "the rest of us". He forgoes the heady, lengthy explanation and gives us a concrete sample that is easy to understand. For anyone who doesn't know the MVVM pattern, or is having difficulty understanding it or how it is useful, this post is for you.
I have been working with ASP.NET MVC for over a year now. The more I work with it, the more I am inclined to use the Model in MVC (more) as a ViewModel. For projects with complex UI, a ViewModel (folder) should exist and should be separate from the Model folder. ViewModels can have DataAnnotations and UI specific logic. Models are more tied with the data entities.