Exemplo n.º 1
0
 /// <summary>
 /// Translates the cities.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <param name="lang">The language.</param>
 /// <param name="cities">The cities.</param>
 public static void TranslateCities(IRoadsService client, string lang, ref List<KeyValuePair<City, City>> cities)
 {
     cities.ForEach(cityPair =>
     {
         cityPair.Key.CityName = client.GetFullTranslationForCityById(int.Parse(cityPair.Key.CityId), lang);
         cityPair.Value.CityName = client.GetFullTranslationForCityById(int.Parse(cityPair.Value.CityId), lang);
     });
 }