internal static Stop Transform(StopDTO stopDTO) { return(new Stop(LocationsDTOToModel.Transform(stopDTO.Station), (stopDTO.Arrival == null) ? (DateTime?)null : DateTime.Parse(stopDTO.Arrival, null, System.Globalization.DateTimeStyles.RoundtripKind), (stopDTO.Departure == null) ? (DateTime?)null : DateTime.Parse(stopDTO.Departure, null, System.Globalization.DateTimeStyles.RoundtripKind), stopDTO.Platform, stopDTO.Delay)); }
internal static Stationboard Transform(StationboardDTO stationboardDTO) { return(new Stationboard(LocationsDTOToModel.Transform(stationboardDTO.Station), JourneyDTOToModel.Transform(stationboardDTO.Journeys))); }