public ActionResult DeleteStatus(int idStatus) { try { Bd = new AccessDB(); if (Bd.DeleteStatus(idStatus)) { ViewBag.Mensagem = "Status deleted!"; } return(RedirectToAction("GetStatus")); } catch (Exception) { return(View("GetStatus")); } }