Ejemplo n.º 1
0
        public async Task <IActionResult> Index(int?page = 1)
        {
            var model = await _staticContentService.GetAllPagedAsync(page.Value - 1, DefaultPageSize);

            model.Paging.CurrentPage   = page.Value;
            model.Paging.ItemsPerPage  = DefaultPageSize;
            model.Paging.ShowFirstLast = true;

            return(View(model));
        }