public ActionResult Edit(Student student) { db.Entry(student).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); }
public ActionResult Create(Student student) { db.Students.Add(student); db.SaveChanges(); return RedirectToAction("Index"); }