コード例 #1
0
 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");
     }
 }
コード例 #2
0
 public BookingInfo GetBooking(BookingRequest request)
 {
     return(dataContext.GetBooking(request));
 }
コード例 #3
0
 public void DeleteBooking(BookingRequest request)
 {
     dataContext.DeleteBooking(request);
 }