Exemple #1
0
 public ActionResult Edit([Bind(Include = "Id,Nombre,Apellido,Direccion")] Persona persona)
 {
     if (ModelState.IsValid)
     {
         db.Entry(persona).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(persona));
 }
Exemple #2
0
 public ActionResult Edit([Bind(Include = "Id,Nombre,Tipotienda,URL")] Provedores provedores)
 {
     if (ModelState.IsValid)
     {
         db.Entry(provedores).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(provedores));
 }