Esempio n. 1
0
        //GET : /Teacher/Update/{id}
        public ActionResult Update(int id)
        {
            TeacherDataController controller = new TeacherDataController();
            Teacher SelectedTeacher          = controller.GetTeacherInformation(id);

            return(View(SelectedTeacher));
        }
Esempio n. 2
0
        //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));
        }