Пример #1
0
        public ActionResult GetData(DataTableDto dto)
        {
            string dicCode = RequestHelper.GetPostString("dicCode");
            string dicName = RequestHelper.GetPostString("dicName");
            var    list    = _dicApp.GetData(dto, dicCode, dicName);

            return(Json(list));
        }
Пример #2
0
        /// <summary>
        /// 数据表格
        /// </summary>
        /// <returns></returns>

        public ActionResult GetData()
        {
            var data = new BootstrapGridDto();

            var list = _dicApp.GetData();

            //data.list = list;
            //data.pageSize = list.Count;
            return(Content(data.ToJson()));
        }