/// <summary> /// Updates the dynamic translations. /// </summary> /// <param name="dynamicTranslationsList">The dynamic translations list.</param> public static void UpdateDynamicTranslations(IRoadsService client, List<DynamicTranslation> dynamicTranslationsList) { List<DynamicTranslationsData> dynamicTraslationListForWcf = new List<DynamicTranslationsData>(); foreach (var dynamicTraslation in dynamicTranslationsList) { dynamicTraslationListForWcf.Add(new DynamicTranslationsData { DynamicObjectId = dynamicTraslation.DynamicObjectId, Value = dynamicTraslation.Value, DescriptionValue = dynamicTraslation.DescriptionValue, LanguageId = dynamicTraslation.LanguageId, DynamicKey = dynamicTraslation.DynamicKey }); } client.UpdateDynamicTranslations(dynamicTraslationListForWcf.ToArray()); }
/// <summary> /// Updates the dynamic translations. /// </summary> /// <param name="translations">The List of <see cref="DynamicTranslationsData"/>.</param> public static void UpdateDynamicTranslations(IRoadsService client, List<DynamicTranslationsData> translations) { client.UpdateDynamicTranslations(translations.ToArray()); }