public UpdateBookingResponse UpdateBooking(UpdateBookingRequest request) { AdministrationServiceDAO adminDAO = new AdministrationServiceDAO(); bool result = adminDAO.UpdateBooking(request.booking); return(new UpdateBookingResponse(result)); }
public UpdateBookingResponse UpdateBooking(UpdateBookingRequest request) { AdministrationServiceDAO adminDAO = new AdministrationServiceDAO(); bool result = adminDAO.UpdateBooking(request.booking); if (result) { return(new UpdateBookingResponse(result)); } else { ThrowNotFoundException(request.booking.id); return(null); } }