public async Task AuthorizeForSingleResource(int resourceId) { bool isAuthorized = IsAdmin || await resService.IsActive(resourceId); if (!isAuthorized) { throw NewNotFoundException;// Excuse } }