Exemplo n.º 1
0
        private string BuildTableWithPagination(List <CoreInfo> cores, int currentPage)
        {
            cores.Sort(CoreLaunchDateComparer);

            var itemsToDisplay = _paginationService.GetItemsToDisplay(cores, currentPage);

            var maxPagesCount    = _paginationService.GetPagesCount(cores.Count);
            var paginationFooter = _paginationService.GetPaginationFooter(currentPage, maxPagesCount);

            return(_coresListTableGenerator.Build(itemsToDisplay, currentPage, paginationFooter));
        }