Пример #1
0
        public object Any(RequiresRole request)
        {
            RequiredRoleAttribute.AssertRequiredRoles(Request, request.Role ?? RoleNames.Admin);

            return request;
        }
Пример #2
0
        public object Any(RequiresRole request)
        {
            RequiredRoleAttribute.AssertRequiredRoles(Request, request.Role ?? RoleNames.Admin);

            return(request);
        }