public PartialViewResult LanguageSelection()
        {
            var model = new LanguageSelectionViewModel
            {
                CurrentLanguage = new ViewModels.LanguageInfo(_languageManager.CurrentLanguage),
                Languages       = _languageManager.GetLanguages().Select(l => new ViewModels.LanguageInfo(l)).ToArray()
            };

            return(PartialView(model));
        }
Exemple #2
0
        public PartialViewResult _AccountLanguages()
        {
            var model = new LanguageSelectionViewModel
            {
                CurrentLanguage = _languageManager.CurrentLanguage.AutoMapTo <Abp.Localization.LanguageInfo>(),
                Languages       = _languageManager.GetLanguages().Where(l => !l.IsDisabled)
                                  .AutoMapTo <List <Abp.Localization.LanguageInfo> >()
                ,
                CurrentUrl = Request.Path
            };

            return(PartialView("_AccountLanguages", model));
        }