concept view model in category dependency injection
appears as: view models, view model

This is an excerpt from Manning's book Dependency Injection.
The use of view models simplifies the view, which is good because views are harder to test. It also makes it easier for a UI designer to work on the application.
public ViewResult Index() { var vm = new FeaturedProductsViewModel(new[] #1 { #1 new ProductViewModel("Chocolate", 34.95m), #1 new ProductViewModel("Asparagus", 39.80m) #1 }); #1 return this.View(vm); #2 } #1 Creates a view model with a hard-coded list of discounted products #2 Wraps the view model in an MVC ViewResult object using MVC’s helper method, View