Which two code segments can you use?

You are developing an ASP.NET MVC application that uses forms authentication. The user database contains a user named OrderAdmin.
You have the following requirements:
You must allow all users to access the GetOrders method.
You must restrict access to the EditOrder method to the user named OrderAdmin.
You need to implement the controller to meet the requirements.
Which two code segments can you use?


A. Option A
B. Option B
C. Option C
D. Option D

microsoft-exams

2 thoughts on “Which two code segments can you use?

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.