示例#1
0
 public List <Admin> GetAll()
 {
     return(_adminDal.GetAll());
 }
 public IDataResult <List <Admin> > GetAll(Expression <Func <Admin, bool> > filter = null)
 {
     return(_adminDal.GetAll());
 }
示例#3
0
 public Admin GetByNameAndPassword(Admin admin)
 {
     return(_adminDal.GetAll(x => x.AdminName == admin.AdminName).Where(x => x.AdminPassword == admin.AdminPassword).FirstOrDefault());
 }
示例#4
0
 public IDataResult <List <Admin> > GetAll()
 {
     _adminDal.GetAll();
     return(new SuccessDataResult <List <Admin> >(_adminDal.GetAll()));
 }