Пример #1
0
 public ActionResult LanguageSelection()
 {
     try
     {
         int languageId   = (int)Session[LocalizationAttribute.SESSION_LANGUAGE_ID];
         var languageList = LanguageContext.GetLanguageList();
         languageList = languageList.Where(item => item.Id != languageId).ToList();
         var model = new LanguageListModel(languageList);
         return(PartialView(model));
     }
     catch (Exception exception)
     {
         logger.Error(exception, "AccountController");
         return(PartialView(@"AjaxError", string.Empty));
     }
 }