public IViewComponentResult Invoke() { var model = new TopBarLanguageSwitchViewModel { CurrentLanguage = languageManager.CurrentLanguage, Languages = languageManager.GetLanguages().Where(l => !l.IsDisabled).ToList() }; return(View(model)); }
public IViewComponentResult Invoke() { var model = new TopBarLanguageSwitchViewModel { CurrentLanguage = languageManager.CurrentLanguage, Languages = languageManager.GetLanguages() }; return(View(model)); }