public ActionResult Edit(Cliente cliente) { if (ModelState.IsValid) { db.Edit(cliente); return(RedirectToAction("Index")); } return(View(cliente)); }
public ActionResult Edit(Cliente cliente) { var biz = new ClienteProcess(); bool result = biz.Edit(cliente); if (result) { return(RedirectToAction("Index")); } else { return(View()); } }