Esempio n. 1
0
 public void RemoveCustomer(string firstName, string lastName, int id)
 {
     try
     {
         Rentals.RemoveCustomer(firstName, lastName, id);
     }
     catch
     {
         DoesNotExistFault fault = new DoesNotExistFault();
         fault.Operation   = "Remove customer";
         fault.Description = "Customer does not exist";
         throw new FaultException <DoesNotExistFault>(fault);
     }
 }
 public void DeleteCustomer(string id)
 {
     r.RemoveCustomer(id);
 }