Example #1
0
        public virtual /*Task<*/ IViewComponentResult PopularProductTags()
        {
            var model = _catalogWebService.PreparePopularProductTags();

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

            throw new NotImplementedException("add correct view");
        }
Example #2
0
        public IViewComponentResult Invoke(string currentCategoryId, string currentProductId)
        {
            var model = _catalogWebService.PreparePopularProductTags();

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

            return(View(model));
        }