April 2017
Intermediate to advanced
564 pages
24h 7m
English
Here is how we can use roles. EmployeeController will only be accessible to users that have a claim type role, such as Admin or Manager:
[Route("api/[controller]")] [Authorize(Roles = "Admin, Manager")] public class EmployeeController : Controller { }
Read now
Unlock full access