Example #1
0
        //Get : /Class/List
        public ActionResult List()
        {
            ClassDataController controller = new ClassDataController();
            IEnumerable <Class> Classes    = controller.ListClasses();

            return(View(Classes));
        }
Example #2
0
        //Get : /Class/Show/{id}
        public ActionResult Show(int id)
        {
            ClassDataController controller = new ClassDataController();
            Class NewClass = controller.FindClass(id);


            return(View(NewClass));
        }