Where do you like to put MVC view model data transformation logic?
问题 Here is the scenario, I need to load up a view model object from a several domain objects that are being returned from multiple web service service calls. The code that transforms the domain model objects into the digestible view model object is a bit of fairly complex code. The three places that I have thought about putting it are: Internal methods inside of the controller to load up an instance view model. Static get method or property on the view model class itself that returns a loaded