コード例 #1
0
        //Get : /Student/Show/{id}
        public ActionResult Show(int id)
        {
            StudentDataController controller = new StudentDataController();
            Student NewStudent = controller.FindStudent(id);

            return(View(NewStudent));
        }
コード例 #2
0
        //Get : /Student/List
        public ActionResult List()
        {
            StudentDataController controller = new StudentDataController();
            IEnumerable <Student> Students   = controller.ListStudents();

            return(View(Students));
        }