public IDataResult <List <Color> > GetAll() { try { return(new SuccessDataResult <List <Color> >(_colorDal.getAll(), Messages.ColorListed)); } catch (Exception) { return(new ErrorDataResult <List <Color> >(Messages.ColorErrorListed)); } }
public IDataResult <List <Color> > GetAllColors() { return(new SuccessDataResult <List <Color> >(_colorDal.getAll(), Messages.Listed)); }
public List <Color> GetAll() { return(_colorDal.getAll()); }