public async Task <IViewComponentResult> InvokeAsync() { var model = await Task.Run(() => _commonViewModelService.PrepareLanguageSelector()); if (model.AvailableLanguages.Count == 1) { Content(""); } return(View(model)); }
public IViewComponentResult Invoke() { var model = _commonViewModelService.PrepareLanguageSelector(); if (model.AvailableLanguages.Count == 1) { Content(""); } return(View(model)); }