public ActionResult Edit(int id, Student stud) { if (ModelState.IsValid) { studentRepo.update(id, stud); return(RedirectToAction("Index")); } return(View(stud)); }
public ActionResult Edit(int id, Course cour) { if (ModelState.IsValid) { courseRepo.update(id, cour); return(RedirectToAction("Index")); } return(View(cour)); }
public ActionResult Edit(int id, Trainer train) { if (ModelState.IsValid) { trainerRepo.update(id, train); return(RedirectToAction("Index")); } return(View(train)); }
public ActionResult Edit(int id, AreaOfInterest aoi) { if (ModelState.IsValid) { areaOfInterestRepo.update(id, aoi); return(RedirectToAction("Index")); } return(View(aoi)); }