Exemplo n.º 1
0
        //GET: Student/Show/{id}
        public ActionResult Show(int id)
        {
            StudentDataController controller = new StudentDataController();
            Student NewStudent = controller.FindStudent(id);

            return(View(NewStudent));
        }
Exemplo n.º 2
0
        //GET: Student/List
        public ActionResult List()

        {
            StudentDataController controller = new StudentDataController();
            IEnumerable <Student> Students   = controller.ListStudents();

            return(View(Students));
        }