Example #1
0
 public List <Admin> GetList(Expression <Func <Admin, bool> > filter = null, params string[] includeList)
 {
     try
     {
         return(adminDal.GetList(filter, includeList));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
        public IDataResult <List <Admin> > GetAll()
        {
            var model = _adminDal.GetList();

            return(new SuccessDataResult <List <Admin> >(model, Messages.Success));
        }
Example #3
0
 public List <Admin> GetList()
 {
     return(_adminDal.GetList().ToList());
 }
 public List <Admin> GetList(Expression <Func <Admin, bool> > filter = null)
 {
     return(AutoMapperHelper.MapToSameTypeList(_adminDal.GetList(filter)));
 }