예제 #1
0
        public async Task <IEnumerable <UserQueryDto> > GetAll()
        {
            var list = await _userRespository.GetAll().ToListAsync();

            return(list.MapToList <User, UserQueryDto>());
        }
 public List <User> GetAll(Expression <Func <User, bool> > predicate = null)
 {
     return(_userRespository.GetAll(predicate));
 }
예제 #3
0
        public IResult <List <User> > GetAll(Expression <Func <User, bool> > predicate = null)
        {
            var result = _userRespository.GetAll(predicate);

            return(new Result <List <User> >(200, result));
        }