public ActionResult DeleteReview(Review data, string submitButton) { if (submitButton == "Delete") { _repo.AdminDeleteAnyReview(data.ReviewId); } return(RedirectToAction("Index", "Reviews")); }
public ActionResult DeleteReview(int id) { _repo.AdminDeleteAnyReview(id); return(RedirectToAction("DeleteReview", "Contributor", new { Id = id })); }