/// <summary>
 /// Gets a select list of available languages.
 /// </summary>
 /// <param name="languageId">The selected language identifier.</param>
 /// <returns></returns>
 public List <SelectListItem> GetLanguageSelectList(int?languageId)
 {
     return
         (_db.up_LanguageList(null, null)
          .Select(
              x =>
              new SelectListItem
     {
         Value = x.LanguageID.ToString(CultureInfo.InvariantCulture),
         Text = x.DisplayName,
         Selected = languageId != null && x.LanguageID == languageId
     })
          .ToList());
 }