예제 #1
0
        public async Task <IActionResult> getAdminLocationInfo([FromRoute] int locationId, [FromQuery] GetAdminListParameters parameters)
        {
            if (!(await _authorizationService
                  .AuthorizeAsync(User, locationId, Operations.ReadEdit)).Succeeded)
            {
                return(Forbid());
            }

            var list = await _repository.GetUserListByLocation(locationId, parameters);

            return(Ok(list));
        }