Hello,
Lately, I've been exploring what's the best way to organize presentation layer of ASP.NET MVC application when underlying Model is complex. What came up till now is MVVM architecture with their ModelView objects. However, I'm not sure what are the best practices when this kind of architecture is in case.
- Does ModelView objects can contain Model objects?
- If MVVM used, is it advisable that Model objects are used on Views?
- Where validation should be implemented, on ModelView or Model classes?
- Should business layer (service layer) know about ModelViews, and who is responsible for mapping between ModelViews and Model?