public async Task <ActionResult <IList <UserViewModel> > > GetAll() { var users = await _userQueries.GetAllAsync(); var usersVm = _mapper.Map <IList <UserViewModel> >(users); return(CustomResponse(usersVm)); }
public async Task <IEnumerable <UsersEntity> > GetAllAsync() { return(await _userQueries.GetAllAsync()); }
public async Task <ActionResult <IEnumerable <User> > > Get() { var user = await _userQueries.GetAllAsync(); return(Ok(user)); }
public async Task <IActionResult> GetAllAsync() => CustomResponse(await _userQueries.GetAllAsync());