How to assign Roles to Authorize in MVC 4
18 Mar 2014, 01:11 PM
You can assign the role to the Authorize
attribute by assigning role name to the Roles
. See the example below.
[Authorize(Roles = "Administrator")] public class AcoAdminController : Controller { }