public void ResolveTransportReferences(Transport[] transports) { if (transports == null) { return; } foreach (var transport in transports) { transport.ArrivalAirport = gatewayBucket.GetBy(transport.ArrivalAirport); transport.DepartureAirport = gatewayBucket.GetBy(transport.DepartureAirport); } }
public void ResolveTransportReferences(Transport[] transports) { if (transports == null) { return; } foreach (var transport in transports) { var type = gatewayBucket.MapTransportType(transport.TransportType); transport.ArrivalAirport = gatewayBucket.GetBy($"{transport.ArrivalAirport}_{type}"); transport.DepartureAirport = gatewayBucket.GetBy($"{transport.DepartureAirport}_{type}"); } }