コード例 #1
0
 public static TicketDetails Create(TicketModel ticket, FlightModel flight)
 {
     return(new TicketDetails
     {
         Id = ticket.Id,
         Price = ticket.Price,
         Flight = flight
     });
 }
コード例 #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
     });
 }