Ejemplo n.º 1
0
 public TOPassengerSeat(PassengerSeat passengerSeat, DatabaseContext _context, int id)
 {
     PassengerSeatId           = passengerSeat.PassengerSeatId;
     FlightReservationDetailId = passengerSeat.FlightReservationDetail.FlightReservationDetailId;
     Seat          = new TOSeat(_context.Seats.Find(passengerSeat.SeatId));
     Seat.FlightId = id;
     Username      = passengerSeat.Username;
     Name          = passengerSeat.Name;
     Surname       = passengerSeat.Surname;
     Passport      = passengerSeat.Passport;
     Accepted      = passengerSeat.Accepted;
     AirlineScored = passengerSeat.AirlineScored;
     FlightScored  = passengerSeat.FlightScored;
 }
Ejemplo n.º 2
0
 public TOFastTicket(FastTicket fastTicket, DatabaseContext _context)
 {
     Seat        = new TOSeat(_context.Seats.Find(fastTicket.SeatId));
     AirlineName = fastTicket.Airline.Name;
     NewPrice    = fastTicket.NewPrice;
 }