Exemplo n.º 1
0
        public async Task <IActionResult> Index(string currentFilter, int?pageNumber)
        {
            var vm = new HistoryViewModel
            {
                CurrentFilter = currentFilter,
                PageNumber    = pageNumber ?? 1,
                PageSize      = 10,
                WebPages      = (!string.IsNullOrEmpty(currentFilter))
                    ? await _webPageService.GetWebPagesAsync(currentFilter)
                    : await _webPageService.GetWebPagesAsync()
            };


            return(View(vm));
        }