Esempio n. 1
0
        protected void SetAspNetCultureCookie(SupportedLanguage language)
        {
            string culture = language.GetAttributeOfType <UiInfoAttribute>()?.Culture;

            culture = string.IsNullOrWhiteSpace(culture) ? "en-US" : culture;

            SetAspNetCultureCookie(new RequestCulture(culture));
        }