public void InsertAircraftCabinType(AircraftCabinTypeDTO aircraftCabinType)
        {
            AircraftCabinType newAircraftCabinType = AircraftCabinTypeFactory.CreateAircraftCabinType();
            AircraftCabinTypeFactory.SetAircraftCabinType(newAircraftCabinType, aircraftCabinType.Name,
                aircraftCabinType.Note);

            _aircraftCabinTypeRepository.Add(newAircraftCabinType);
        }
        public void ModifyAircraftCabinType(AircraftCabinTypeDTO aircraftCabinType)
        {
            AircraftCabinType updateAircraftCabinType = _aircraftCabinTypeRepository.Get(aircraftCabinType.Id);
                //获取需要更新的对象。
            AircraftCabinTypeFactory.SetAircraftCabinType(updateAircraftCabinType, aircraftCabinType.Name,
                aircraftCabinType.Note);

            _aircraftCabinTypeRepository.Modify(updateAircraftCabinType);
        }
 public void DeleteAircraftCabinType(AircraftCabinTypeDTO aircraftCabinType)
 {
     AircraftCabinType deleteAircraftCabinType = _aircraftCabinTypeRepository.Get(aircraftCabinType.Id);
         //获取需要删除的对象。
     _aircraftCabinTypeRepository.Remove(deleteAircraftCabinType); //删除飞机舱位类型。
 }