Example #1
0
 public IDataResult <List <Brand> > GetAll()
 {
     if (DateTime.Now.Hour == 22)
     {
         return(new ErrorDataResult <List <Brand> >(Messages.Maintenance));
     }
     return(new SuccessDataResult <List <Brand> >(_brandDao.GetAll(), Messages.BrandListed));
 }
 public IDataResult <List <Brand> > GetAll()
 {
     return(new SuccessDataResult <List <Brand> >(_brandDao.GetAll()));
 }