Exemple #1
0
        public IViewComponentResult Invoke(string currentCategoryId, string currentProductId)
        {
            var model = _catalogViewModelService.PreparePopularProductTags();

            if (!model.Tags.Any())
            {
                return(Content(""));
            }

            return(View(model));
        }
Exemple #2
0
        public async Task <IViewComponentResult> InvokeAsync(string currentCategoryId, string currentProductId)
        {
            var model = await Task.Run(() => _catalogViewModelService.PreparePopularProductTags());

            if (!model.Tags.Any())
            {
                return(Content(""));
            }

            return(View(model));
        }