コード例 #1
0
        public static Language GetDefaultLanguage()
        {
            var cachedResult = LanguageCache.CheckInCacheDefaultLanguage();

            if (cachedResult != null)
            {
                return(cachedResult);
            }
            var languageList = GetLanguageList();
            var language     = languageList.FirstOrDefault(item => item.IsDefault);

            LanguageCache.AddToCacheDefaultLanguage(language);
            return(language);
        }