Exemplo n.º 1
0
 public static TicketDetails Create(TicketModel ticket, FlightModel flight)
 {
     return(new TicketDetails
     {
         Id = ticket.Id,
         Price = ticket.Price,
         Flight = flight
     });
 }
Exemplo n.º 2
0
 public static DepartureDetails Create(
     DepartureModel depature, FlightModel flight, PlaneDetails plane, CrewDetails crew
     )
 {
     return(new DepartureDetails
     {
         Id = depature.Id,
         Date = depature.Date,
         Flight = flight,
         Plane = plane,
         Crew = crew
     });
 }