예제 #1
0
        public static Domain.Passenger.Passenger Create(PassengerView view)
        {
            var d = new PassengerData();

            Copy.Members(view, d);

            return(new Domain.Passenger.Passenger(d));
        }
예제 #2
0
        public static PassengerView Create(Domain.Passenger.Passenger o)
        {
            var v = new PassengerView();

            if (!(o?.Data is null))
            {
                Copy.Members(o.Data, v);
            }

            return(v);
        }