Example #1
0
        public IActionResult Load(DataTablesRequest dtRequest)
        {
            var result = configurationsManager.Load(
                new PageRequest {
                Skip = dtRequest.Start, Take = dtRequest.Length
            });
            var response = new DataTablesResponse
            {
                data            = result.Items.ToArray(),
                draw            = dtRequest.Draw,
                recordsFiltered = result.TotalItems,
                recordsTotal    = result.TotalItems
            };

            return(this.JsonContent(response));
        }