Which two actions should you recommend?

You are designing an ASP.NET MVC 2 Web application. The Web application will include a
controller named AdminController. You need to recommend an approach for ensuring that
the action methods of the AdminController controller are available only to the local Windows
Administrator account. Which two actions should you recommend? (Each correct answer
presents part of the solution. Choose two.)

You are designing an ASP.NET MVC 2 Web application. The Web application will include a
controller named AdminController. You need to recommend an approach for ensuring that
the action methods of the AdminController controller are available only to the local Windows
Administrator account. Which two actions should you recommend? (Each correct answer
presents part of the solution. Choose two.)

A.
Read role information from the AuthorizationContext object.

B.
In the Web.conflg file, add an authorization element for the Web application.

C.
Add the Authorize attribute to each action method in the AdminController controller.

D.
Read role information from the ConfigurationManager object.



Leave a Reply 0

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