Example #1
0
 public static void CreateConnectionFlightTicket()
 {
     Flights = Flights.GroupJoin(Tickets, x => x.Id, x => x.FlightId,
                                 (flight, tickets) => new Flight()
     {
         Id             = flight.Id,
         ArrivalPoint   = flight.ArrivalPoint,
         ArrivalTime    = flight.ArrivalTime,
         DeparturePoint = flight.DeparturePoint,
         DepartureTime  = flight.DepartureTime,
         Tickets        = new List <Ticket>(tickets),
         TicketsId      = flight.TicketsId
     }).ToList();
 }