public void DeleteLeaseContractAircraft(LeaseContractAircraftDTO leaseContractAircraft)
 {
     ContractAircraft newLeaseContractAircraft =
         _contractAircraftRepository.GetFiltered(t => t.Id == leaseContractAircraft.LeaseContractAircraftId)
             .FirstOrDefault();
     //获取需要删除的对象。
     _contractAircraftRepository.Remove(newLeaseContractAircraft); //删除租赁合同飞机。
 }
 public void ModifyLeaseContractAircraft(LeaseContractAircraftDTO leaseContractAircraft)
 {
     ContractAircraft updateLeaseContractAircraft =
         _contractAircraftRepository.GetFiltered(t => t.Id == leaseContractAircraft.LeaseContractAircraftId)
             .FirstOrDefault();
     //获取需要更新的对象。
     if (updateLeaseContractAircraft != null)
     {
     }
     _contractAircraftRepository.Modify(updateLeaseContractAircraft);
 }
 public void InsertLeaseContractAircraft(LeaseContractAircraftDTO leaseContractAircraft)
 {
     LeaseContractAircraft newLeaseContractAircraft = ContractAircraftFactory.CreateLeaseContractAircraft("", "");
     _contractAircraftRepository.Add(newLeaseContractAircraft);
 }