示例#1
0
        public IDictionary <string, string> GetDictionary(IEnumerable <string> values)
        {
            var texts        = values.Select(x => x.ToLower()).ToList();
            var translations = _readOnlyRepository.GetAllSync <TranslateItem>().Where(x => texts.Contains(x.Id)).ToList();

            return(translations.ToDictionary(x => x.Id, x => x.TextRu));
        }