コード例 #1
0
        //
        // GET: /StudentHome/

        public ActionResult Index()
        {
            User u = (User)Session["user"];

            List <Course> list = StudentCourseDAL.getAllStudentCourses(u.UserId);

            return(View("index", list));
        }
コード例 #2
0
        public ActionResult insertStudentCourse(string courseId)
        {
            User u = (User)Session["user"];

            StudentCourseDAL.insert(u.UserId, courseId);
            List <Course> list = StudentCourseDAL.getAllStudentCourses(u.UserId);

            return(View("index", list));
        }