public async Task <ProductReview> AddReview(ProductReview review) { _dbContext.ProductReviews.Add(review); await _dbContext.SaveChangesAsync(); return(review); }
public async Task <ProductReview> Add(ProductReview productReview) { _context.Reviews.Add(productReview); await _context.SaveChangesAsync(); return(productReview); }