Microsoft
70-519 · Question #244
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 Controller class named Products. 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 Model class named ProductCategory
- BA View class named ProductCategory
- CA Controller class named ProductsController
- DA Controller class named Products
How the community answered
(32 responses)- A9% (3)
- B3% (1)
- C3% (1)
- D84% (27)
Community Discussion
No community discussion yet for this question.