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