Developing ASP.NET MVC Web Applications — Question 98
You are designing an MVC web application.
The view must be as simple as possible for designers who do not have a technical background.
You need to combine two existing models to meet the requirement.
Which component of the MVC framework should you use?
Answer options
- A. View
- B. View Model
- C. Controller
- D. Model
Correct answer: B
Explanation
The correct answer is B, the View Model, as it allows you to combine and manage data from multiple models to present a simplified view to the user. The View is primarily concerned with rendering data, the Controller handles the logic and communication between the View and Model, and the Model represents the data structure without combining them for the view.