public JsonResult GetTopArticle(string entId, string channel, string category, int num = 0, int pageIndex = 1, int pageSize = 15, string articleId = "") { try { if (string.IsNullOrEmpty(entId)) { entId = BaseConfiguration.EntId; } ArticleDal dal = new ArticleDal(); List <Article> list = dal.GetTopArticle(entId, num, pageIndex, pageSize, channel, category, articleId, out int pageCount, out int recordCount); return(Json(new { success = true, pageCount = pageCount, recordCount = recordCount, list = list })); } catch (Exception ex) { LogQueue.Write(LogType.Error, "Article/GetTopArticle", ex.Message); return(Json(new { success = false, message = "文章/咨询加载失败!" })); } }