public IDataResult <List <Brand> > GetAll()
 {
     try
     {
         return(new SuccessDataResult <List <Brand> >(_brandDal.getAll(), Messages.BrandListed));
     }
     catch (Exception)
     {
         return(new ErrorDataResult <List <Brand> >(Messages.BrandErrorListed));
     }
 }
 public IDataResult <List <Brand> > GetBrands()
 {
     return(new SuccessDataResult <List <Brand> >(_brandDal.getAll(), true, Messages.Listed));
 }
Example #3
0
 public List <Brand> GetAll()
 {
     return(_brandDal.getAll());
 }