I want to give access to System Administrator and Administrator but when I am writing @if (User.IsInRole("System Administrator","Administrator")) getting error(no overload for method'IsINRole' take 2 arguments)allthough on controller it is working
[CustomAuthorize(Roles = "System Administrator,Administrator")] public class CategoriesController : Controller
I there other a way to solve this problem?