public IActionResult ChuShiHua() { string method = Request.Query["Method"].ToString(); string ClassId = Request.Query["ClassId"].ToString(); string userId = Request.Query["userId"].ToString(); string SortId = Request.Query["SortId"].ToString(); string res = ""; try { if (method == "Clear") { //国地税题目 publicmethod p = new publicmethod(); string path = AppConfigurtaionServices.Configuration["appSettings:Practicepath"] + "/APIPractice/Chongzuo.asmx/GetHuNanData?UserId=" + userId + "&ClassId=" + ClassId + "&SortId=" + SortId; string resut = p.HttpGetFunction(path); string billpath = AppConfigurtaionServices.Configuration["appSettings:tikupath"] + "/GTX/GDTXHuNanUserYSBQC/RedoAllQuestionsHuNan"; res = p.HttpPost(billpath, string.Format("jsonData={0}", resut)); } } catch { } return(Content(res, "text/html;charset=utf-8"));; }
public IActionResult VideoManage() { publicmethod p = new publicmethod(); string path = AppConfigurtaionServices.Configuration["appSettings:Practicepath"] + "/APIPractice/VideoManage.asmx/GetByCourseId?CourseId=" + AppConfigurtaionServices.Configuration["appSettings:CourseId"]; string resut = p.HttpGetFunction(path); ActionResult ar = JsonConvert.DeserializeObject <ActionResult>(resut); HttpContext.Session.SetString("VideoManage", ar.Data); return(View()); }
public IActionResult GetVideo(string CourseId) { string res = ""; try { publicmethod p = new publicmethod(); string path = AppConfigurtaionServices.Configuration["appSettings:Practicepath"] + "/APIPractice/VideoManage.asmx/GetByCourseId?CourseId=" + CourseId; res = p.HttpGetFunction(path); } catch { } return(Content(res, "text/html;charset=utf-8"));; }
public void ProcessRequest(HttpContext context) { string CourseId = context.Request.QueryString["CourseId"].ToString(); string res = ""; try { publicmethod p = new publicmethod(); string path = System.Web.Configuration.WebConfigurationManager.AppSettings["Practicepath"] + "/APIPractice/VideoManage.asmx/GetByCourseId?CourseId=" + CourseId; res = p.HttpGetFunction(path); } catch { } context.Response.Clear(); context.Response.ContentType = "text/html"; context.Response.Write(res); }