コード例 #1
0
        /// <summary>
        /// 获取数据列表
        /// </summary>
        /// <param name="condition">查询类型</param>
        /// <param name="keyword">关键字</param>
        /// <returns></returns>
        public ActionResult GetDataList(string condition, string keyword, Pagination pagination)
        {
            var dataList = _articleBusiness.GetDataList(condition, keyword, pagination).Select(m => new { m.Id, m.Title }).ToList();

            return(Content(pagination.BuildTableResult_DataGrid(dataList).ToJson()));
        }