Ejemplo n.º 1
0
        public async Task <IActionResult> GetUsersPro([FromBody] UserSearchProViewModel userSearchProViewModel)
        {
            var claimQuery = _claimService.AddClaimsToQuery(userSearchProViewModel.Claims);
            var roleQuery  = _roleService.AddRolesToQuery(userSearchProViewModel.RoleIds);
            var users      = await _userService.FindUsersAsync(claimQuery, roleQuery).ConfigureAwait(false);

            var usersDisplayViewModel = _mapper.Map <List <UserDisplayViewModel> >(users);

            return(Ok(usersDisplayViewModel));
        }