private IEnumerable<Contracts.Models.Translation> GetTranslationsIfEmpty(IEnumerable<Contracts.Models.Translation> translations, string locale, Expression<Func<Contracts.Models.Translation, Boolean>> where) { if (!locale.Equals(EnglishLocale, StringComparison.OrdinalIgnoreCase) && !translations.Any()) { var englishTranslations = _translationService.Get(where); translations = GetTranslations(englishTranslations.ToArray(), locale); AddNewTranslations(translations); } return translations; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)