コード例 #1
0
        public ActionResult Grid(GridParams gridParams)
        {
            var select = _selectService.GetSelectsForGrid(new GetSelectsRequest
            {
                Skip              = gridParams.DisplayStart,
                Take              = gridParams.DisplayLength,
                Search            = gridParams.Search,
                SortingDictionary = gridParams.SortingDictionary
            });
            var data = new
            {
                sEcho = gridParams.Echo + 1,
                iTotalDisplayRecords = select.TotalRecords,
                iTotalRecords        = select.Selects.Count,
                aaData = select.Selects
            };

            return(Json(data, JsonRequestBehavior.AllowGet));
        }