public void DeletePurchaseContractAircraft(PurchaseContractAircraftDTO purchaseContractAircraft)
 {
     ContractAircraft newPurchaseContractAircraft =
         _contractAircraftRepository.GetFiltered(t => t.Id == purchaseContractAircraft.PurchaseContractAircraftId)
             .FirstOrDefault();
     //获取需要删除的对象。
     _contractAircraftRepository.Remove(newPurchaseContractAircraft); //删除采购合同飞机。
 }
 public void ModifyPurchaseContractAircraft(PurchaseContractAircraftDTO purchaseContractAircraft)
 {
     ContractAircraft updatePurchaseContractAircraft =
         _contractAircraftRepository.GetFiltered(t => t.Id == purchaseContractAircraft.PurchaseContractAircraftId)
             .FirstOrDefault();
     //获取需要更新的对象。
     if (updatePurchaseContractAircraft != null)
     {
     }
     _contractAircraftRepository.Modify(updatePurchaseContractAircraft);
 }
 public void InsertPurchaseContractAircraft(PurchaseContractAircraftDTO purchaseContractAircraft)
 {
     PurchaseContractAircraft newPurchaseContractAircraft =
         ContractAircraftFactory.CreatePurchaseContractAircraft("", "");
     _contractAircraftRepository.Add(newPurchaseContractAircraft);
 }