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)); }
public List <Brand> GetAll() { return(_brandDal.getAll()); }