Esempio n. 1
0
        public ActionResult Show(int teacherId)
        {
            TeacherDataController controller = new TeacherDataController();
            Teacher teacher = controller.FindTeacher(teacherId);

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

            return(View(teachers));
        }