We have a decent MVC project that works well at the moment, I started looking at some re-factoring, and I have a question.
Currently, the data level and service level are stored in a separate class library. Controllers load data objects (generated from linq2sql) from the service level, which performs any logical check, and then converts them to viewmodels (using Auto-Mapper).
Instead, should ViewModels be returned directly from the service?
LiamB source
share