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