public ActionResult AddStatus(Status statusObj) { try { if (ModelState.IsValid) { Bd = new AccessDB(); if (Bd.AddNewStatus(statusObj)) { ViewBag.Mensagem = "Status added!"; } } return(View()); } catch (Exception) { return(View("GetStatus")); } }