Example #1
0
        public string GetKnowledgeIDs(int id)
        {
            MicroCourseBLL mCourseBll = new MicroCourseBLL();
            string         cataids    = mCourseBll.GetKnowledgeIDs(id);

            return(cataids);
        }
Example #2
0
        public JsonResult GetMicroCourseByKey(string key = "")
        {
            MicroCourseBLL mCourseBll    = new MicroCourseBLL();
            MicroResource  microresource = mCourseBll.GetMicroCourseByKey(key);
            KingResponse   response      = KingResponse.GetResponse(null, microresource);

            return(Json(response));
        }
Example #3
0
        // GET: MicroCourse
        public ActionResult Index(int subjectId = 2, int stageId = 2)
        {
            MicroCourseBLL mCourseBll = new MicroCourseBLL();

            if (!string.IsNullOrEmpty(CookieHelper.GetCookieValue("StageID")))
            {
                stageId = int.Parse(CookieHelper.GetCookieValue("StageID"));
            }
            MicroCourseModel mCourseModel = mCourseBll.GetMicroCourseInfo(subjectId, stageId);

            ViewBag.StageID = stageId;
            return(View(mCourseModel));
        }