コード例 #1
0
 public void EditCustomer(Customer customer)
 {
     try
     {
         Rentals.EditCustomer(customer);
     }
     //would add specific catch after reading message, but this is the idea.
     catch
     {
         DoesNotExistFault fault = new DoesNotExistFault();
         fault.Operation   = "Edit customer";
         fault.Description = "Customer does not exist";
         throw new FaultException <DoesNotExistFault>(fault);
     }
 }
コード例 #2
0
 public void EditCustomer(Customer customer)
 {
     r.EditCustomer(customer);
 }