示例#1
0
        public async Task <ActionResult <IList <UserViewModel> > > GetAll()
        {
            var users = await _userQueries.GetAllAsync();

            var usersVm = _mapper.Map <IList <UserViewModel> >(users);

            return(CustomResponse(usersVm));
        }
示例#2
0
 public async Task <IEnumerable <UsersEntity> > GetAllAsync()
 {
     return(await _userQueries.GetAllAsync());
 }
示例#3
0
        public async Task <ActionResult <IEnumerable <User> > > Get()
        {
            var user = await _userQueries.GetAllAsync();

            return(Ok(user));
        }
示例#4
0
 public async Task <IActionResult> GetAllAsync()
 => CustomResponse(await _userQueries.GetAllAsync());