/// <summary> /// Get all resource strings for a language /// </summary> /// <param name="language"></param> /// <returns></returns> public Dictionary <string, string> ResourceKeysByLanguage(Language language) { var cacheKey = string.Concat(AppConstants.LanguageStrings, language.Id); var cachedResourceKeys = _cacheService.Get(cacheKey); if (cachedResourceKeys == null) { cachedResourceKeys = _localizationRepository.GetAllLanguageStringsByLangauge(language.Id); _cacheService.Set(cacheKey, cachedResourceKeys, AppConstants.CacheTwelveHours); } return(cachedResourceKeys as Dictionary <string, string>); }
/// <summary> /// Get all resource strings for a language /// </summary> /// <param name="language"></param> /// <returns></returns> public Dictionary <string, string> ResourceKeysByLanguage(Language language) { return(_localizationRepository.GetAllLanguageStringsByLangauge(language.Id)); }