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); }
public void RemoveReview(Review review) { _pzReviewRepo.Remove(review); }