Beispiel #1
0
        //学生主页api
        public JsonResult GetStuCourse(Guid?childidGuid)
        {
            string    apiurl = APIHelper.GetApiUrl("getstucourse", apiconfig);
            EbookPara para   = new EbookPara
            {
                PageIndex = 1,
                PageSize  = 2,
                UserId    = childidGuid != null ? childidGuid.Value : loginId
            };
            var resultdata = HttpClientHelper.POSTMethod(apiurl, para);

            return(Json(resultdata, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
        public JsonResult GetEbookCount(Guid?userid)
        {
            Guid id = loginId;

            if (userid != null)
            {
                id = userid.Value;
            }
            string    apiurl = APIHelper.GetApiUrl("getebookdata", apiconfig);
            EbookPara para   = new EbookPara
            {
                PageIndex = 1,
                PageSize  = 10,
                UserId    = id
            };
            var resultdata = HttpClientHelper.POSTMethod(apiurl, para);

            return(Json(resultdata, JsonRequestBehavior.AllowGet));
        }