public async Task <ActionResult> Index(Commerce.Models.Pages.NewProductsPage currentPage, int page = 1)
        {
            await _trackingService.PageViewed(HttpContext, currentPage);

            var startPage = _contentLoader.Get <DemoHomePage>(ContentReference.StartPage);
            var model     = new NewProductsPageViewModel(currentPage);

            model.ProductViewModels = _searchService.SearchNewProducts(currentPage, out var pages, startPage.SearchCatalog, page);
            model.PageNumber        = page;
            model.Pages             = pages;
            return(View(model));
        }
        public ActionResult Index(Commerce.Models.Pages.NewProductsPage currentPage, int page = 1)
        {
            var startPage = _contentLoader.Get <DemoHomePage>(ContentReference.StartPage);
            var model     = new NewProductsPageViewModel(currentPage)
            {
                ProductViewModels = _searchService.SearchNewProducts(currentPage, out var pages, startPage.SearchCatalog, page),
                PageNumber        = page,
                Pages             = pages
            };

            return(View(model));
        }
    }