コード例 #1
0
        public IViewComponentResult Invoke()
        {
            var model = new TopBarLanguageSwitchViewModel
            {
                CurrentLanguage = languageManager.CurrentLanguage,
                Languages       = languageManager.GetLanguages().Where(l => !l.IsDisabled).ToList()
            };

            return(View(model));
        }
コード例 #2
0
        public IViewComponentResult Invoke()
        {
            var model = new TopBarLanguageSwitchViewModel
            {
                CurrentLanguage = languageManager.CurrentLanguage,
                Languages       = languageManager.GetLanguages()
            };

            return(View(model));
        }