public ActionResult Edit([Bind(Include = "Id,lectureName,staffID")] Lecture lecture) { if (ModelState.IsValid) { db.Entry(lecture).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(lecture)); }
public ActionResult Edit([Bind(Include = "Id,lectureID,studentID")] pa pa) { if (ModelState.IsValid) { db.Entry(pa).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pa)); }
public ActionResult Edit([Bind(Include = "Id,Name,Matrix,Year,Course,Gender")] Student student) { if (ModelState.IsValid) { db.Entry(student).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(student)); }