public async Task <ResponseGetUsersViewModel> GetUsers(RequestGetUsersViewModel request) { List <User> users = await _userManager.Users.Skip(request.Index).Take(request.Count).ToListAsync(); var result = new ResponseGetUsersViewModel(); result.Users = _mapper.Map <List <ResponseGetUserViewModelItem> >(users); return(result); }
public async Task <ResponseGetUsersViewModel> GetProducts(RequestGetUsersViewModel request) { ResponseGetUsersViewModel result = await _service.GetUsers(request); return(result); }