public ActionResult Edit([Bind(Include = "Id,Name,ClassTd")] Students students) { if (ModelState.IsValid) { db.Entry(students).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(students)); }
public ActionResult Edit([Bind(Include = "Id,Name")] Teacher teacher) { if (ModelState.IsValid) { db.Entry(teacher).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(teacher)); }
public ActionResult Edit([Bind(Include = "Id,Name,Controller,Action")] Sidebar sidebar) { if (ModelState.IsValid) { db.Entry(sidebar).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(sidebar)); }
public ActionResult Edit([Bind(Include = "ID,Name,TeacherID")] Classes classes) { if (ModelState.IsValid) { db.Entry(classes).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(classes)); }
public ActionResult Edit([Bind(Include = "Id,ClassId,TeacherId,CourseId")] CourseManagement courseManagement) { if (ModelState.IsValid) { db.Entry(courseManagement).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(courseManagement)); }