示例#1
0
        public void SaveDataTraveltrip(TripPath tripath)
        {
            TraveltriprecordDTO record = new TraveltriprecordDTO();

            record.DepartureAirportId = tripath.DepartureAirport;
            record.ArrivalAirportId   = tripath.DestinationAirport;
            record.CustomerName       = "exercice";

            TravelTripManager.SaveDataTraveltrip(record, tripath.Airplane);
        }
示例#2
0
        public List <TripPath> getAllrecordTripPath()
        {
            List <TripPath>            result = new List <TripPath>();
            List <TraveltriprecordDTO> list   = TravelTripManager.LoadDataTraveltrip();

            foreach (var p in list)
            {
                TripPath tripath = new TripPath();
                tripath.DepartureAirport   = p.DepartureAirportId;
                tripath.DestinationAirport = p.ArrivalAirportId;
                result.Add(tripath);
            }
            return(result);
        }