Ejemplo n.º 1
0
 public IDataResult <List <Contact> > GetAll()
 {
     try
     {
         return(new SuccessDataResult <List <Contact> >(_contactDal.GetList(), Messages.SuccessGetList));
     }
     catch (Exception)
     {
         return(new ErrorDataResult <List <Contact> >(Messages.ErrorGetList));
     }
 }
Ejemplo n.º 2
0
 public List <Contact> GetList(Expression <Func <Contact, bool> > filter = null, params string[] includeList)
 {
     try
     {
         return(contactDal.GetList(filter, includeList));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 3
0
 public List <Contact> GetAll()
 {
     //throw new NotImplementedException();
     return(_contactDal.GetList().OrderByDescending(k => k.CreateDate).ToList());
 }
Ejemplo n.º 4
0
 public List <Contact> GetList() => _contactDal.GetList();
Ejemplo n.º 5
0
 public IDataResult <List <Contact> > GetAll()
 {
     return(new SuccessDataResult <List <Contact> >(_contactDal.GetList()));
 }