public ActionResult DeleteReview(string reviewTitlePage, int id) { if (reviewTitlePage.StartsWith("Live")) { _admin.DeleteReview(id); } else { _admin.DeleteCustomerReview(id); } switch (reviewTitlePage) { case "Approved Reviews": return(RedirectToAction("ApprovedReviews", "Admin")); case "Rejected Reviews": return(RedirectToAction("RejectedReviews", "Admin")); case "Live Reviews": return(RedirectToAction("LiveReviews", "Admin")); default: return(RedirectToAction("PendingReviews", "Admin")); } }