Пример #1
0
        private void Pagination(int page)
        {
            const int pageSize = 8;
            int       count    = Beers.Count();

            Beers           = Beers.Skip((page - 1) * pageSize).Take(pageSize).ToList();
            PaginationModel = new PaginationViewModel(count, page, pageSize);
        }