Exemplo n.º 1
0
        //public PartialViewResult SelectPeriod(int year, int period)
        //{
        //    var ret = GyglService.getPeriodBySearch(year, period);
        //    if (ret != null)
        //        return PartialView("CopyRight", ret);
        //    return null;
        //}
        public async Task <JsonResult> GetSelectPeriod(int year, int period)
        {
            var result = await GyglService.getPeriodBySearch(year, period);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
        public async Task <JsonResult> GetPeriod(int id)
        {
            var result = await GyglService.getPeriod(id);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 3
0
        /// <summary>
        /// 页面内获取
        /// </summary>
        /// <param name="year"></param>
        /// <param name="period"></param>
        /// <param name="page"></param>
        /// <returns>改造</returns>
        public async Task <JsonResult> getSelectYear(int?year, int?period, int page)
        {
            var result = await GyglService.getPeriodicalByYear(year, period, 6, page);

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