/// <summary> /// Go to the dynamic page "Update Teacher" then gather info from the database /// </summary> /// <param name="id">Id of the teacher</param> /// <returns>provides the current information of the teacher and asks the user to alter the information as part of a form.</returns> /// <example>GET : /Teacher/Update/5</example> public ActionResult Update(int id) { TeacherDataController controller = new TeacherDataController(); Teacher SelectedTeacher = controller.FindTeacher(id); return(View(SelectedTeacher)); }
//GET : /Teacher/DeleteConfirm/{id} public ActionResult DeleteConfirm(int id) { TeacherDataController controller = new TeacherDataController(); Teacher NewTeacher = controller.FindTeacher(id); return(View(NewTeacher)); }