public void DeletePurchaseContractEngine(PurchaseContractEngineDTO purchaseContractEngine)
 {
     ContractEngine newPurchaseContractEngine =
         _contractEngineRepository.GetFiltered(t => t.Id == purchaseContractEngine.PurchaseContractEngineId)
             .FirstOrDefault();
     //获取需要删除的对象。
     _contractEngineRepository.Remove(newPurchaseContractEngine); //删除采购合同发动机。
 }
 public void ModifyPurchaseContractEngine(PurchaseContractEngineDTO purchaseContractEngine)
 {
     ContractEngine updatePurchaseContractEngine =
         _contractEngineRepository.GetFiltered(t => t.Id == purchaseContractEngine.PurchaseContractEngineId)
             .FirstOrDefault();
     //获取需要更新的对象。
     if (updatePurchaseContractEngine != null)
     {
     }
     _contractEngineRepository.Modify(updatePurchaseContractEngine);
 }
 public void InsertPurchaseContractEngine(PurchaseContractEngineDTO purchaseContractEngine)
 {
     PurchaseContractEngine newPurchaseContractEngine = ContractEngineFactory.CreatePurchaseContractEngine("", "");
     _contractEngineRepository.Add(newPurchaseContractEngine);
 }