Exemplo n.º 1
0
        public ActionResult GetPageListJson(Pagination pagination, string queryJson)
        {
            var watch    = CommonHelper.TimerStart();
            var data     = userBLL.GetPageList(pagination, queryJson);
            var JsonData = new
            {
                rows     = data,
                total    = pagination.total,
                page     = pagination.page,
                records  = pagination.records,
                costtime = CommonHelper.TimerEnd(watch)
            };

            return(Content(JsonData.ToJson()));
        }