public IViewComponentResult Invoke(string currentCategoryId, string currentProductId) { var model = _catalogViewModelService.PreparePopularProductTags(); if (!model.Tags.Any()) { return(Content("")); } return(View(model)); }
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)); }