public async Task <IViewComponentResult> InvokeAsync() { var model = await Task.Run(() => _commonViewModelService.PrepareFavicon()); if (String.IsNullOrEmpty(model.FaviconUrl)) { return(Content("")); } return(View(model)); }
public IViewComponentResult Invoke() { var model = _commonViewModelService.PrepareFavicon(); if (String.IsNullOrEmpty(model.FaviconUrl)) { return(Content("")); } return(View(model)); }