예제 #1
0
        public async Task AuthorizeForSingleResource(int resourceId)
        {
            bool isAuthorized = IsAdmin || await resService.IsActive(resourceId);

            if (!isAuthorized)
            {
                throw NewNotFoundException;// Excuse
            }
        }