コード例 #1
0
        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));
        }
コード例 #2
0
 public List <AppUser> List()
 {
     return(_appUserDal.GetList());
 }
コード例 #3
0
        public List <AppUser> GetAll()
        {
            var data = _mapper.Map <List <AppUser> >(_appUserDal.GetList());

            return(data);
        }
コード例 #4
0
        public IDataResult <List <AppUser> > GetList()

        {
            return(new SuccessDataResult <List <AppUser> >(_appUserDal.GetList().ToList()));
        }
コード例 #5
0
 public List <AppUser> GetList(Expression <Func <AppUser, bool> > filter = null)
 {
     return(_appUserDal.GetList(filter));
 }