WORKAROUND!!!!, I somehow the service doesn't return what I want

This commit is contained in:
Andreas Zweili 2018-08-30 22:03:09 +02:00
parent b71a234c8e
commit 03d68cea19
1 changed files with 3 additions and 3 deletions

View File

@ -89,10 +89,10 @@ namespace Plattform
Dictionary<string, List<Flight>> flights = Dictionary<string, List<Flight>> flights =
new Dictionary<string, List<Flight>>(); new Dictionary<string, List<Flight>>();
List<SpecialOffer> offers = new List<SpecialOffer>(); List<SpecialOffer> offers = new List<SpecialOffer>();
flights = client.GetFlights(room.FreeFrom, room.FreeUntil, var flightsx = client.GetFlights(room.FreeFrom, room.FreeUntil,
room.Hotel.City.Name, room.Hotel.City.Name,
room.RoomType.Capacity); room.RoomType.Capacity);
foreach (var flight in flights["To"]) foreach (var flight in flightsx["To"])
{ {
SpecialOffer offer = new SpecialOffer(); SpecialOffer offer = new SpecialOffer();
offer.FlightTo = flight; offer.FlightTo = flight;
@ -103,7 +103,7 @@ namespace Plattform
int counter = 0; int counter = 0;
foreach (var offer in offers) foreach (var offer in offers)
{ {
offer.FlightFrom = flights["From"][counter]; offer.FlightFrom = flightsx["From"][counter];
offerDB.CreateSpecialOffer(offer); offerDB.CreateSpecialOffer(offer);
counter += 1; counter += 1;
} }