fix the workaround

appearantly a List can't be sent through the service
This commit is contained in:
Andreas Zweili 2018-09-01 15:56:54 +02:00
parent d89d10c19d
commit d680164f3a
1 changed files with 4 additions and 4 deletions

View File

@ -86,13 +86,13 @@ namespace Plattform
FreeFrom = CalendarFrom.SelectedDate, FreeFrom = CalendarFrom.SelectedDate,
FreeUntil = CalendarTo.SelectedDate FreeUntil = CalendarTo.SelectedDate
}; };
Dictionary<string, List<Flight>> flights = Dictionary < string, Flight[]> flights =
new Dictionary<string, List<Flight>>(); new Dictionary<string, Flight[]>();
List<SpecialOffer> offers = new List<SpecialOffer>(); List<SpecialOffer> offers = new List<SpecialOffer>();
var flightsx = client.GetFlights(room.FreeFrom, room.FreeUntil, flights = client.GetFlights(room.FreeFrom, room.FreeUntil,
room.Hotel.City.Name, room.Hotel.City.Name,
room.RoomType.Capacity); room.RoomType.Capacity);
foreach (var flight in flightsx["To"]) foreach (var flight in flights["To"])
{ {
SpecialOffer offer = new SpecialOffer(); SpecialOffer offer = new SpecialOffer();
offer.FlightTo = flight; offer.FlightTo = flight;