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)); }
public IResult <List <User> > GetAll(Expression <Func <User, bool> > predicate = null) { var result = _userRespository.GetAll(predicate); return(new Result <List <User> >(200, result)); }