public ActionResult Show(int teacherId) { TeacherDataController controller = new TeacherDataController(); Teacher teacher = controller.FindTeacher(teacherId); return(View(teacher)); }
public ActionResult List() { TeacherDataController controller = new TeacherDataController(); IEnumerable <Teacher> teachers = controller.ListTeachers(); return(View(teachers)); }