Exemple #1
0
        public IActionResult DeleteAllConfirmed(int reviewId)
        {
            Review unwantedReview = reviewRepo.Reviews.FirstOrDefault(review => review.ReviewId == reviewId);

            reviewRepo.Remove(unwantedReview);
            return(RedirectToAction("Index", "Products"));
        }
 public void Remove(int id)
 {
     _reviewRepo.Remove(id);
 }
Exemple #3
0
 public void RemoveReview(Review review)
 {
     _pzReviewRepo.Remove(review);
 }