/// <summary> /// Gets the static translation for. /// </summary> /// <param name="key">The key.</param> /// <returns>The List of <see cref="Mvc.RoadsServiceClient.StaticTranslationData"/>.</returns> public static List<StaticTranslationData> GetStaticTranslationFor(IRoadsService client, string key) { var languages = client.GetAllLanguages(); return client.GetStaticTranslationData(key).Select(s => new StaticTranslationData { EnumKey = s.EnumKey, LanguageId = s.LanguageId, Value = s.Value, StaticTranslationId = s.StaticTranslationId, Language = languages.FirstOrDefault(l => l.LanguageId == s.LanguageId) }) .ToList(); }