public ActionResult Edit([Bind(Include = "Id,Name")] GroupDancers groupDancers) { if (ModelState.IsValid) { db.Entry(groupDancers).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(groupDancers)); }
public ActionResult Edit([Bind(Include = "Id,Name,Age,Phone,StudioAddress,StudioName,City,Email,Password")] Dancers dancers) { if (ModelState.IsValid) { db.Entry(dancers).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(dancers)); }
public ActionResult Edit([Bind(Include = "Id,Name,Age,Phone,CompanyAddress,CompanyName,City,Email,Password")] Teacher teacher) { if (ModelState.IsValid) { db.Entry(teacher).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(teacher)); }