Microsoft
70-519 · Question #72
You are designing an ASP.NET MVC 2 Web application. When the Web application is accessed through the . . . /Products/Categories URL, it will display a list of products sorted by category. You have…
The correct answer is D. A Model class named ProductCategory. See the full explanation below for the reasoning.
Question
You are designing an ASP.NET MVC 2 Web application. When the Web application is accessed through the . . . /Products/Categories URL, it will display a list of products sorted by category. You have the following requirements:
- The Web application design must be loosely coupled.
- The Web application must support unit testing of the data layer code.
You need to recommend a location for the code that maps and retrieves products from the data store. Which location should you recommend?
Options
- AA View class named ProductCategory
- BA Controller class named ProductsController
- CA Controller class named Products
- DA Model class named ProductCategory
How the community answered
(36 responses)- A11% (4)
- B6% (2)
- C3% (1)
- D81% (29)
Community Discussion
No community discussion yet for this question.