public IDataResult <Color> GetColorById(int id)
 {
     return(new SuccessDataResult <Color>(colorDal.Get(x => x.ColorId == id)));
 }
 public Color GetById(int colorId)
 {
     return(_colorDal.Get(p => p.Id == colorId));
 }
Beispiel #3
0
 public IDataResult <Color> GetById(int id)
 {
     return(new SuccessDataResult <Color>(_colorDal.Get(b => b.ColorId == id)));
 }
 public Color GetCarsByColorId(int colorId)
 {
     return(_colorDal.Get(c => c.ColorId == colorId));
 }
Beispiel #5
0
 public IDataResult <Color> GetById(int colorID)
 {
     return(new SuccessDataResult <Color>(_colorDal.Get(c => c.ID == colorID)));
 }
 public IDataResult <Color> GetById(int colorId)
 {
     return(new SuccessDataResult <Color>(_colorsDal.Get(p => p.Id == colorId)));
 }
Beispiel #7
0
 public IDataResult <Color> GetById(int id)
 {
     return(new SuccessDataResult <Color>(_colorDal.Get(b => b.Id == id), Messages.ColorListed));
 }
Beispiel #8
0
 public Color GetByColor(string colorName)
 {
     return(_colorData.Get(c => c.ColorName == colorName));
 }
 public IDataResult <Color> GetByColorName(string name)
 {
     return(new SuccessDataResult <Color>(_colorDal.Get(c => c.ColorName == name)));
 }
 public IDataResult <Color> GetById(int colorId)
 {
     return(new SuccessDataResult <Color>(_colorDal.Get(p => p.ColorId == colorId), Messages.ListSucces));
 }
 public IDataResult <Color> GetById(int id)
 {
     return(new SuccessDataResult <Color>(_color.Get(c => c.ColorId == id)));
 }
Beispiel #12
0
 public Color GetById(int id)
 {
     return(_colorDal.Get(b => b.Id == id));
 }
Beispiel #13
0
 public IDataResult <List <CarDetailDto> > GetCarDetailsByColorId(int id)
 {
     return(new SuccessDataResult <List <CarDetailDto> >(_carDal.GetCarDetails().Where(p => p.ColorName == _colorDal.Get(t => t.Id == id).ColorName).ToList()));
 }
Beispiel #14
0
 public void GetById(int id)
 {
     _colorDal.Get(c => c.ColorId == id);
 }
Beispiel #15
0
 public IDataResult <Entities.Concrete.Color> GetById(int colorId)
 {
     return(new SuccessDataResult <Entities.Concrete.Color>(_colorDal.Get(c => c.ColorId == colorId)));
 }
 public Color GetById(int colorTd)
 {
     return(_colorDal.Get(c => c.Id == colorTd));
 }
Beispiel #17
0
 public IDataResult <Color> GetByColorId(int id)
 {
     return(new SuccessDataResult <Color>
                (_colordal.Get(c => c.ColorId == id), Messages.ContentsListed));
 }
Beispiel #18
0
 public IResult Delete(int id)
 {
     _colorDal.Delete(_colorDal.Get(c => c.id == id));
     return(new SuccessResult(Messages.SuccessDelete));
 }
 public IDataResult <Color> GetById(int Id)
 {
     return(new SuccessDataResult <Color>(_colorDal.Get(c => c.Id == Id), Messages.Listed));
 }
Beispiel #20
0
 public Color GetById(int id)
 {
     return(_colorDal.Get(c => c.ColorId == id));
 }
Beispiel #21
0
 public IDataResult <Color> Get(int id)
 {
     return(new SuccessDataResult <Color>(_colorDal.Get(c => c.ColorId == id), Messages.Listed));
 }
Beispiel #22
0
 public IDataResult <Color> GetById(int id)
 {
     return(new SuccessDataResult <Color>
                (_IColorDal.Get(p => p.Id == id)));
 }
Beispiel #23
0
 public IDataResult <Color> GetById(int colorId)
 {
     return(new SuccessDataResult <Color>(_colorDal.Get(cl => cl.ColorId == colorId)));
 }
Beispiel #24
0
 public IDataResult <Color> GetColorById(int id)
 {
     return(new SuccessDataResult <Color>(_colorDal.Get(c => c.Id == id)));
 }
Beispiel #25
0
 public IDataResult <Color> GetColorById(int colorId)
 {
     return(new SuccessDataResult <Color>(_colorDal.Get(c => c.ColorId == colorId), Messages.ColorListedById));
 }
Beispiel #26
0
 public IDataResult <Color> GetById(int id)
 {
     return(new SuccessDataResult <Color>(Messages.Success, _dal.Get(c => c.Id.Equals(id))));
 }
        public IDataResult <Color> GetById(int colorId)
        {
            var getById = _colorDal.Get(c => c.ColorId == colorId);

            return(new SuccessDataResult <Color>(getById));
        }
Beispiel #28
0
 public IResult Delete(int id)
 {
     _colorDal.Delete(_colorDal.Get(c => c.Id == id));
     return(new Result(true, Messages.DeletedSuccess));
 }
 public IDataResult <Color> GetById(int Id)
 {
     return(new SuccessDataResult <Color>(_colorDal.Get(c => c.colorId == Id)));
 }
Beispiel #30
0
 public IDataResult <Color> GetById(int id)
 {
     return(new SuccessDataResult <Color>(_colorDal.Get(c => c.Id == id), GenericMessages <Color> .ObjHandler + Messages.IsListed));
 }