예제 #1
0
        // GET: Teacher/Show/{id}
        public ActionResult Show(int id)
        {
            TeacherDataController controller = new TeacherDataController();
            Teacher Teacher = controller.FindTeacher(id);

            return(View(Teacher));
        }
예제 #2
0
        // GET: Teacher/DeleteTeacherConfirm/{id}
        public ActionResult DeleteConfirmTeacher(int id)
        {
            //Creates a instance of Controller.
            TeacherDataController controller = new TeacherDataController();
            Teacher Teacher = controller.FindTeacher(id);

            return(View(Teacher));
        }
예제 #3
0
        //GET: /Teacher/Update/{id}
        public ActionResult Update(int id)
        {
            //Creates a instance of Controller.
            TeacherDataController controller = new TeacherDataController();

            // Calls the find teacher method of the conrtoller.
            Teacher selectedTeacher = controller.FindTeacher(id);

            //Returns the evalute result.
            return(View(selectedTeacher));
        }