public IResult Add(IFormFile file, CarImage carImage) { var result = BusinessRules.Run(CheckImageRestriction(carImage.CarId)); if (result != null) { return(result); } carImage.ImagePath = FileHelper.Addd(file); carImage.Date = DateTime.Now; _carImageDal.Add(carImage); return(new SuccessResult("başarılı")); }