Filtering based on authorization

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
{
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.178.237