public async Task <IViewComponentResult> InvokeAsync()
        {
            var model = await Task.Run(() => _commonViewModelService.PrepareLanguageSelector());

            if (model.AvailableLanguages.Count == 1)
            {
                Content("");
            }

            return(View(model));
        }
示例#2
0
        public IViewComponentResult Invoke()
        {
            var model = _commonViewModelService.PrepareLanguageSelector();

            if (model.AvailableLanguages.Count == 1)
            {
                Content("");
            }

            return(View(model));
        }