public IDataResult <List <Color> > GetAll() { var result = _colorDal.Count(); if (result > 0) { return(new SuccessDataResult <List <Color> >(_colorDal.GetAll())); } return(new ErrorDataResult <List <Color> >(Messages.NotFound())); }