public async Task <IDataResult <IList <AppUserOutput> > > GetListByFilter(Expression <Func <AppUser, bool> > filter = null) { var users = await _appUserDal.GetList(filter); var userOutputs = MapsterTool.Map <IList <AppUser>, IList <AppUserOutput> >(users); return(new SuccessDataResult <IList <AppUserOutput> >(userOutputs, Messages.Successfully)); }
public List <AppUser> List() { return(_appUserDal.GetList()); }
public List <AppUser> GetAll() { var data = _mapper.Map <List <AppUser> >(_appUserDal.GetList()); return(data); }
public IDataResult <List <AppUser> > GetList() { return(new SuccessDataResult <List <AppUser> >(_appUserDal.GetList().ToList())); }
public List <AppUser> GetList(Expression <Func <AppUser, bool> > filter = null) { return(_appUserDal.GetList(filter)); }