public IResult Add(CarImage carImage, IFormFile formFile) { var result = BusinessRules.Run(CheckCarImageCountPerCar(carImage)); if (result != null) { return(result); } var uploadedPath = FileUploadHelper.CreateImage(formFile); carImage.ImagePath = uploadedPath.Data; carImage.Date = DateTime.Now; _carImageDal.Add(carImage); return(new SuccessResult(Messages.CarImageAdded)); }