Пример #1
0
        public async Task <PaginatedList <User> > Find(FilteredPageRequest filteredPageRequest)
        {
            if (!_user.IsAuthorisedAtLevel(UserRole.Admin))
            {
                throw new UnauthorizedAccessException();
            }

            return(await _userRepository.Find(filteredPageRequest));
        }