You are developing an ASP.NET MVC application that uses forms authentication. The user database contains a user named LibraryAdmin.
You have the following requirements:
✑ You must allow all users to access the GetBook method.
✑ You must restrict access to the EditBook method to the user named LibraryAdmin.
You need to implement the controller to meet the requirements.
Which code segment should you use? (Each correct answer presents a complete solution. Choose all that apply.)
AlexFromGalax
Highly Voted 5 years, 6 months agoGods_Kenny
Highly Voted 5 years, 3 months agoEkovalev
Most Recent 5 years, 7 months agoGorilla
5 years, 5 months agoLt_munchies
4 years, 9 months agochupachup
4 years, 8 months agomurat12345
4 years, 7 months ago