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

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

            return(View(model));
        }