/// <summary> /// Initializes a new instance of the <see cref="ClaimsAuthorizeAttribute" /> class. /// </summary> /// <param name="action">The action.</param> /// <param name="role">The role.</param> public ClaimsAuthorizeAttribute(string action, UserAccessLevel role) { _action = action; _resources = new[] { role.ToString() }; }