fix the workaround
appearantly a List can't be sent through the service
This commit is contained in:
parent
d89d10c19d
commit
d680164f3a
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue