public ActionResult ApagarFeedback(Int32 ID) { if (Session["Adm"] == null) { Response.Redirect("~/Home/Index", false); } Feedbacks f = new Feedbacks(Convert.ToInt32(ID)); if (f.Apagar()) { ViewBag.OK = "Apagado com sucesso!"; } return(RedirectToAction("Listar", "Adm")); }