Exemplo n.º 1
0
        public IDataResult <List <CarByColorDto> > GetByColorId(int colorId)
        {
            var result = _colorDal.GetByColorId(colorId);

            if (result.Count > 0)
            {
                return(new SuccessDataResult <List <CarByColorDto> >(result));
            }
            return(new ErrorDataResult <List <CarByColorDto> >(result));
        }
Exemplo n.º 2
0
 public List <Color> GetByColorId(int ColorId)
 {
     return(_colorDal.GetByColorId(ColorId));
 }