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

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

            return(View(model));
        }