I would like to add Authorization to a controller, for multiple Roles at once.
Normally that would look like this:
[Authorize(Roles = \"RoleA,RoleB,R
The best and simplest way I found to resolve this problem is just to concatenate roles in the Authorize attribute.
[Authorize(Roles = CustomRoles.Admin + "," + CustomRoles.OtherRole)]
with CustomRole a class with constant strings like this :
public static class CustomRoles
{
public const string Admin = "Admin";
// and so on..
}