Ejemplo n.º 1
0
 public ReadRideDTO(BusinessRide ride)
     : this(ride.Ride)
 {
     Carrier        = new CarrierDTO(ride.Carrier);
     ArrivalStation = new StationDTO(ride.ArrivalStation);
     TakeOfStation  = new StationDTO(ride.TakeOfStation);
 }
Ejemplo n.º 2
0
 public static Carrier FromDTO(CarrierDTO dto)
 {
     return(new Carrier()
     {
         Id = dto.Id,
         Name = dto.Name,
         Website = dto.Website,
         PhoneNumber = dto.PhoneNumber
     });
 }