//GET : /Teacher/Update/{id} public ActionResult Update(int id) { TeacherDataController controller = new TeacherDataController(); Teacher SelectedTeacher = controller.GetTeacherInformation(id); return(View(SelectedTeacher)); }
//GET : /Teacher/DeleteConfirm/{id} public ActionResult DeleteConfirm(int id) { TeacherDataController controller = new TeacherDataController(); // Get teacher information Teacher teacher = controller.GetTeacherInformation(id); // Get course information associated to the teacher teacher.Classes = controller.GetTeacherClasses(id); return(View(teacher)); }