Exemple #1
0
 private static void ConvertCasualties(this AccidentStatisticDb accidentStatisticDb, AccidentStatistic tflAccidentStatistic)
 {
     foreach (var accidentStatisticCasualty in tflAccidentStatistic.Casualties)
     {
         accidentStatisticDb.Casualties.Add(accidentStatisticDb.ConvertFrom(accidentStatisticCasualty));
     }
 }
Exemple #2
0
 private static void ConvertVehicles(this AccidentStatisticDb accidentStatisticDb, AccidentStatistic tflAccidentStatistic)
 {
     foreach (var accidentStatisticVehicle in tflAccidentStatistic.Vehicles)
     {
         var newVehicle = accidentStatisticDb.ConvertFrom(accidentStatisticVehicle);
         accidentStatisticDb.Vehicles.Add(newVehicle);
     }
 }