public ActionResult Edit([Bind(Include = "Id,Libelle")] Specialite specialite) { if (ModelState.IsValid) { db.Entry(specialite).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(specialite)); }
public ActionResult Edit([Bind(Include = "Id,Matricule,Prenom,Nom,DateNaiss,Salaire")] Medecin medecin) { if (ModelState.IsValid) { db.Entry(medecin).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(medecin)); }