Exemple #1
0
        public async Task <ProductReview> AddReview(ProductReview review)
        {
            _dbContext.ProductReviews.Add(review);
            await _dbContext.SaveChangesAsync();

            return(review);
        }
Exemple #2
0
        public async Task <ProductReview> Add(ProductReview productReview)
        {
            _context.Reviews.Add(productReview);

            await _context.SaveChangesAsync();

            return(productReview);
        }