示例#1
0
 public static DepartureDetails Create(
     Departure departure, PlaneDetails plane, CrewDetails crew
     )
 {
     return(new DepartureDetails
     {
         Id = departure.Id,
         Date = departure.Date,
         Flight = Mapper.Map <FlightModel>(departure.Flight),
         Plane = plane,
         Crew = crew
     });
 }
示例#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
     });
 }