예제 #1
0
 public ActionResult Edit(Cliente cliente)
 {
     if (ModelState.IsValid)
     {
         db.Edit(cliente);
         return(RedirectToAction("Index"));
     }
     return(View(cliente));
 }
예제 #2
0
        public ActionResult Edit(Cliente cliente)
        {
            var  biz    = new ClienteProcess();
            bool result = biz.Edit(cliente);

            if (result)
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                return(View());
            }
        }