public ActionResult Edit([Bind(Include = "Id,CourdeName")] kecheng kecheng) { if (ModelState.IsValid) { db.Entry(kecheng).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(kecheng)); }
public ActionResult Edit(Teachers teachers) { if (ModelState.IsValid) { db.Entry(teachers).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(teachers)); }
public ActionResult Edit(Course course) { if (ModelState.IsValid) { db.Entry(course).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(course)); }
public ActionResult Edit(ActionLink actionlink) { if (ModelState.IsValid) { db.Entry(actionlink).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(actionlink)); }
public ActionResult Edit([Bind(Include = "Id,Name,ClassId")] 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,Controller,Action")] Sidebars sidebars) { if (ModelState.IsValid) { db.Entry(sidebars).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(sidebars)); }
public ActionResult Edit(Student student) { if (ModelState.IsValid) { db.Entry(student).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(student)); }
public ActionResult Edit([Bind(Include = "Id,ClassId,CourseId,TeacherId")] CourseManagements courseManagements) { if (ModelState.IsValid) { db.Entry(courseManagements).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(courseManagements)); }
public ActionResult Edit([Bind(Include = "Id,WeekId,SectionId,CourseId")] Weeks weeks) { if (ModelState.IsValid) { db.Entry(weeks).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(weeks)); }
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(Classes classes) { if (ModelState.IsValid) { db.Entry(classes).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } var teachers = db.Teachers.ToList(); ViewBag.Teachers = teachers; return(View(classes)); }