Пример #1
0
        public JsonResult OnGetUsersAsync(int draw, int start, int length)
        {
            var totalCount  = _visitors.GetTotalVisitorCount();
            var connections = _visitors.GetVisitors(start, length);

            dynamic response = new
            {
                Data            = connections,
                Draw            = draw,
                RecordsTotal    = totalCount,
                RecordsFiltered = totalCount,
            };

            return(new JsonResult(response));
        }