Reputation: 1867
I am now at the fun part of my journey in building an MVC application. I have spent the last 3 weeks researching architecture, ONION specifically, and learning about IOC/DI and such.
So my question is this: What is the best way to implement ViewModels? I have seen some terrible examples so far.
Upvotes: 5
Views: 1691
Reputation: 13497
I recommend reviewing this article which outlines different 'tactics' for handling view models. http://blogs.msdn.com/b/simonince/archive/2010/01/26/view-models-in-asp-net-mvc.aspx
Some recommendations I can give you for view models is:
Upvotes: 2