public void RemoveBooking(string bookingId) { try { Rentals.RemoveBooking(bookingId); } catch { DoesNotExistFault fault = new DoesNotExistFault(); fault.Operation = "Remove Booking"; fault.Description = "Booking does not exist"; throw new FaultException <DoesNotExistFault>(fault); } }
public void DeleteBooking(string id) { r.RemoveBooking(id); }