Right now it submits the appointment & shows the confirmation message in one action. If they reload the confirmation page it tries to submit it 2x but throws an exception because it prevents double bookings.
Instead it should insert the booking, then redirect to a confirmation page. Refreshing the confirmation page should not attempt a double booking.
Right now it submits the appointment & shows the confirmation message in one action. If they reload the confirmation page it tries to submit it 2x but throws an exception because it prevents double bookings.
Instead it should insert the booking, then redirect to a confirmation page. Refreshing the confirmation page should not attempt a double booking.