public void CreateBooking(BookingRequest request) { try { logic.CreateBooking(request.inputs.carId, request.inputs.customerId, request.inputs.startTime, request.inputs.endTime); } catch (ArgumentException) { throw new FaultException("Invalid request inputs"); } }
public BookingInfo GetBooking(BookingRequest request) { return(dataContext.GetBooking(request)); }
public void DeleteBooking(BookingRequest request) { dataContext.DeleteBooking(request); }