public IResult Add(Color color) { _colorDal.Add(color); SuccessResult successResult = new SuccessResult(Messages.ColorAdded); return(successResult); }
public IResult Delete(CarImage carImage) { IResult result = new SuccessResult(); if (result != null) { return(result); } _carImageDal.Delete(carImage); FileHelper.Delete(carImage.ImagePath); return(new SuccessResult()); }