Пример #1
0
 public void DeleteLeaseContractEngine(LeaseContractEngineDTO leaseContractEngine)
 {
     ContractEngine newLeaseContractEngine =
         _contractEngineRepository.GetFiltered(t => t.Id == leaseContractEngine.LeaseContractEngineId)
             .FirstOrDefault();
     //获取需要删除的对象。
     _contractEngineRepository.Remove(newLeaseContractEngine); //删除租赁合同发动机。
 }
Пример #2
0
 public void ModifyLeaseContractEngine(LeaseContractEngineDTO leaseContractEngine)
 {
     ContractEngine updateLeaseContractEngine =
         _contractEngineRepository.GetFiltered(t => t.Id == leaseContractEngine.LeaseContractEngineId)
             .FirstOrDefault();
     //获取需要更新的对象。
     if (updateLeaseContractEngine != null)
     {
     }
     _contractEngineRepository.Modify(updateLeaseContractEngine);
 }
Пример #3
0
 public void InsertLeaseContractEngine(LeaseContractEngineDTO leaseContractEngine)
 {
     LeaseContractEngine newLeaseContractEngine = ContractEngineFactory.CreateLeaseContractEngine("", "");
     _contractEngineRepository.Add(newLeaseContractEngine);
 }