public ActionResult Edit([Bind(Include = "ID,LastName,FirstMidName,EnrollmentDate")] Student student) { if (ModelState.IsValid) { if (studentCRUD.Update(student)) { return(RedirectToAction("Index")); } } return(View(student)); }
public ActionResult Edit([Bind(Include = "ID,LastName,FirstMidName,EnrollmentDate")] Student student) { if (ModelState.IsValid) { if (studentCRUD.Update(student)) { return(RedirectToAction("Index")); } } return(View(student)); }