public List <Admin> GetList(Expression <Func <Admin, bool> > filter = null, params string[] includeList) { try { return(adminDal.GetList(filter, includeList)); } catch (Exception ex) { throw ex; } }
public IDataResult <List <Admin> > GetAll() { var model = _adminDal.GetList(); return(new SuccessDataResult <List <Admin> >(model, Messages.Success)); }
public List <Admin> GetList() { return(_adminDal.GetList().ToList()); }
public List <Admin> GetList(Expression <Func <Admin, bool> > filter = null) { return(AutoMapperHelper.MapToSameTypeList(_adminDal.GetList(filter))); }