//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)); }
public async Task <JsonResult> GetPeriod(int id) { var result = await GyglService.getPeriod(id); return(Json(result, JsonRequestBehavior.AllowGet)); }
/// <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)); }