public ActionResult Edit([Bind(Include = "ID_CLIENT,NOMBRE1_CLIENT,NOMBRE2_CLIENT,APELLIDO1_CLIENT,APELLIDO2_CLIENT,DIRECCION1_CLIENT,CIUDAD_CLIENT,DISTRITO_CLIENT,CANTON_CLIENT,PROVINCIA_CLIENT,TELEF_CASA_CLIENT,TELF_CELULAR_CLIENT,EMAIL_CLIENT")] CLIENT cLIENT)
 {
     if (ModelState.IsValid)
     {
         db.Entry(cLIENT).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(cLIENT));
 }
Exemple #2
0
 public ActionResult Edit([Bind(Include = "USER_ID,USER_NAME,USER_EMAIL,USER_PASSWORD")] USER uSER)
 {
     if (ModelState.IsValid)
     {
         db.Entry(uSER).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(uSER));
 }