public void InsertAircraftSeries(AircraftSeriesDTO aircraftSeries)
 {
     AircraftSeries newAircraftSeries = AircraftSeriesFactory.CreateAircraftSeries();
     AircraftSeriesFactory.SetAircraftSeries(newAircraftSeries, aircraftSeries.Name, aircraftSeries.Description,
         aircraftSeries.ManufacturerId);
     _aircraftSeriesRepository.Add(newAircraftSeries);
 }
 public void ModifyAircraftSeries(AircraftSeriesDTO aircraftSeries)
 {
     AircraftSeries updateAircraftSeries = _aircraftSeriesRepository.Get(aircraftSeries.Id); //获取需要更新的对象。
     AircraftSeriesFactory.SetAircraftSeries(updateAircraftSeries, aircraftSeries.Name,
         aircraftSeries.Description, aircraftSeries.ManufacturerId);
     _aircraftSeriesRepository.Modify(updateAircraftSeries);
 }
 public void DeleteAircraftSeries(AircraftSeriesDTO aircraftSeries)
 {
     AircraftSeries deleteAircraftSeries = _aircraftSeriesRepository.Get(aircraftSeries.Id); //获取需要删除的对象。
     _aircraftSeriesRepository.Remove(deleteAircraftSeries); //删除飞机系列。
 }