public string GetKnowledgeIDs(int id) { MicroCourseBLL mCourseBll = new MicroCourseBLL(); string cataids = mCourseBll.GetKnowledgeIDs(id); return(cataids); }
public JsonResult GetMicroCourseByKey(string key = "") { MicroCourseBLL mCourseBll = new MicroCourseBLL(); MicroResource microresource = mCourseBll.GetMicroCourseByKey(key); KingResponse response = KingResponse.GetResponse(null, microresource); return(Json(response)); }
// 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)); }