public IResult Add(CarImageForAddDto carImageForAddDto) { IResult result = BusinessRules.Run( CheckIfCarImageLimitExceeded(carImageForAddDto.CarId) ); if (result != null) { return(result); } CarImage carImage = new CarImage(); carImage.CarId = carImageForAddDto.CarId; carImage.ImagePath = _uploadService.AddFromBase64(carImageForAddDto.Image); carImage.Date = DateTime.Now; _carImageDal.Add(carImage); return(new SuccessResult(Messages.CarImageAdded)); }