public ActionResult CommentFor() { if (ItemID < 1) { function.WriteErrMsg("内容ID错误"); return(null); } //获取节点配置 M_CommonData cdata = conBll.GetCommonData(ItemID); if (cdata == null) { function.WriteErrMsg("内容不存在"); return(null); } M_Node nodeMod = nodeBll.GetNodeXML(cdata.NodeID); if (nodeMod == null) { function.WriteErrMsg("节点不存在"); return(null); } PageSetting setting = cmtBll.SeachCommentByGid1(CPage, PSize, ItemID); ViewBag.nodeMod = nodeMod; ViewBag.mu = mu; return(View(setting)); }
public IActionResult CommentFor() { if (ItemID < 1) { return(WriteErr("内容ID错误")); } PageSetting setting = cmtBll.SeachCommentByGid1(CPage, PSize, ItemID); if (Request.IsAjax()) { return(PartialView("CommentFor_List", setting)); } //获取节点配置 M_CommonData cdata = conBll.GetCommonData(ItemID); if (cdata == null) { return(WriteErr("内容不存在")); } M_Node nodeMod = nodeBll.GetNodeXML(cdata.NodeID); if (nodeMod == null) { return(WriteErr("节点不存在")); } ViewBag.nodeMod = nodeMod; ViewBag.mu = mu; return(View(setting)); }