public ActionResult Edit(Student student) { _db.Entry(student).State = EntityState.Modified; _db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit(Instructor instructor) { _db.Entry(instructor).State = EntityState.Modified; _db.SaveChanges(); return(RedirectToAction("Index")); }