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)); }