public IResult Add(IFormFile file, BookImage bookImage) { IResult result = BusinessRules.Run(CheckImageLimitExceeded(bookImage.BookId)); if (result != null) { return(result); } bookImage.ImagePath = FileHelper.Add(file); bookImage.Date = DateTime.Now; _bookImageDal.Add(bookImage); return(new SuccessResult()); }
public IResult Add(IFormFile file, BookImage bookImage) { bookImage.ImagePath = FileHelper.Add(file); bookImage.Date = DateTime.Now; _bookImageDal.Add(bookImage); return(new SuccessResult()); }