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)); }
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)); }