Authorize Attribute is used to restrict the controller/Action with respect to Users.
Authorize Attribute-takes Roles,Users,Order as parameters
/*Authorize users whose role is admin*/ [Authorize(Roles = "admin")] <span style="font-style: inherit; font-weight: inherit; line-height: 1.625;">public ActionResult Index()</span> { return Content("Hello"); }