Exemplo n.º 1
0
        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));
        }