/// <summary> /// 根据模块id得到该模块下的所有文章 /// </summary> /// <param name="id"></param> /// <returns></returns> public IActionResult GetModel(int id) { var modellist = _modelBll.GetModelByPid(id); var result = _articleBll.GetArticleByModel(modellist); return(Json(result)); }
/// <summary> /// 根据模块pid来获取子模块,如果pid为空,则表示获取最大的模块 /// </summary> /// <param name="pid"></param> /// <returns></returns> public IActionResult GetModel(int?pid) { var result = _wzzmodel.GetModelByPid(pid); return(Json(result)); }