WORKAROUND!!!!, I somehow the service doesn't return what I want
This commit is contained in:
parent
b71a234c8e
commit
03d68cea19
|
@ -89,10 +89,10 @@ namespace Plattform
|
|||
Dictionary<string, List<Flight>> flights =
|
||||
new Dictionary<string, List<Flight>>();
|
||||
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.RoomType.Capacity);
|
||||
foreach (var flight in flights["To"])
|
||||
foreach (var flight in flightsx["To"])
|
||||
{
|
||||
SpecialOffer offer = new SpecialOffer();
|
||||
offer.FlightTo = flight;
|
||||
|
@ -103,7 +103,7 @@ namespace Plattform
|
|||
int counter = 0;
|
||||
foreach (var offer in offers)
|
||||
{
|
||||
offer.FlightFrom = flights["From"][counter];
|
||||
offer.FlightFrom = flightsx["From"][counter];
|
||||
offerDB.CreateSpecialOffer(offer);
|
||||
counter += 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue