[HttpPost] // PUT public ActionResult Edit(Status status) { try { if (ModelState.IsValid) { _statusRepository.Atualiza(status); return(RedirectToAction("List")); } } catch (DataException) { ModelState.AddModelError("", "Não foi possível salvar as mudanças. Tente novamente....."); } return(View(status)); }