public async Task <IViewComponentResult> InvokeAsync(string currentCategoryId, string currentProductId)
        {
            var model = await _catalogViewModelService.PrepareCategoryNavigation(currentCategoryId, currentProductId);

            return(View(model));
        }
Exemple #2
0
        public IViewComponentResult Invoke(string currentCategoryId, string currentProductId)
        {
            var model = _catalogViewModelService.PrepareCategoryNavigation(currentCategoryId, currentProductId);

            return(View(model));
        }