Which location should you recommend?

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?

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?

A.
A Controller class named ProductsController

B.
A Controller class named Products

C.
A View class named ProductCategory

D.
A Model class named ProductCategory



Leave a Reply 0

Your email address will not be published. Required fields are marked *