public ActionResult DeleteReview(Review data, string submitButton)
        {
            if (submitButton == "Delete")
            {
                _repo.AdminDeleteAnyReview(data.ReviewId);
            }

            return(RedirectToAction("Index", "Reviews"));
        }
Esempio n. 2
0
 public ActionResult DeleteReview(int id)
 {
     _repo.AdminDeleteAnyReview(id);
     return(RedirectToAction("DeleteReview", "Contributor", new { Id = id }));
 }