public ActionResult Edit(cliente cliente) { ActionResult Result; try { if (ModelState.IsValid) { ClienteBLL oBLL = new ClienteBLL(); oBLL.Edit(cliente); Result = RedirectToAction("Index"); } else { Result = View(cliente); } return(Result); } catch (Exception e) { return(View(cliente)); } }