コード例 #1
0
        public async Task <ActionResult> GetRankings(string strid)
        {
            AllCollegeCourseModel SingleCourse = await CoursesControllerUtl.ByIdWholeWorkForAll <AllCollegeCourseModel>(domain, "AllCollege", strid);

            List <Ranking> rankings = SingleCourse.rankingdata;

            return(PartialView(rankings));
        }
コード例 #2
0
        public async Task <ActionResult> GetComments(string strid)
        {
            AllCollegeCourseModel SingleCourse = await CoursesControllerUtl.ByIdWholeWorkForAll <AllCollegeCourseModel>(domain, "AllCollege", strid);

            List <Comment> comments = SingleCourse.commentdata;

            return(PartialView(comments));
        }
コード例 #3
0
        public async Task <ActionResult> GetCourseDetail(string strid)
        {
            AllCollegeCourseModel SingleCourse = await CoursesControllerUtl.ByIdWholeWorkForAll <AllCollegeCourseModel>(domain, "AllCollege", strid);

            return(View(SingleCourse));
        }
コード例 #4
0
        public async Task <ActionResult> PostRanking(string strid, Ranking ranking)
        {
            AllCollegeCourseModel SingleCourse = await CoursesControllerUtl.ByIdWholeWorkForAll <AllCollegeCourseModel>(domain, "AllCollege", strid);

            return(PartialView(SingleCourse));
        }