예제 #1
0
        public ActionResult Show(int teacherId)
        {
            TeacherDataController controller = new TeacherDataController();
            Teacher teacher = controller.FindTeacher(teacherId);

            return(View(teacher));
        }
예제 #2
0
        public ActionResult List()
        {
            TeacherDataController controller = new TeacherDataController();
            IEnumerable <Teacher> teachers   = controller.ListTeachers();

            return(View(teachers));
        }