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); } }
public void EditCustomer(Customer customer) { r.EditCustomer(customer); }