Exemple #1
0
        public ActionResult Show(int studentId)
        {
            StudentDataController controller = new StudentDataController();
            Student student = controller.FindStudent(studentId);

            return(View(student));
        }
Exemple #2
0
        public ActionResult List()
        {
            StudentDataController controller = new StudentDataController();
            IEnumerable <Student> students   = controller.ListStudents();

            return(View(students));
        }