protected void ConfirmOrDeleteOrCancelBooking(UrlParamType urlParamType)
    {
        Booking booking = UrlBooking;

        if (booking == null)
        {
            throw new Exception("Invalid url field booking_id");
        }

        if (urlParamType == UrlParamType.Delete)
        {
            BookingDB.UpdateSetDeleted(booking.BookingID, GetStaffID());
        }
        else if (urlParamType == UrlParamType.Confirm)
        {
            BookingDB.UpdateSetConfirmed(booking.BookingID, 1, GetStaffID());
        }
        else if (urlParamType == UrlParamType.Unconfirm)
        {
            BookingDB.UpdateSetUnconfirmed(booking.BookingID);
        }
        else if (urlParamType == UrlParamType.Arrived)
        {
            BookingDB.UpdateSetArrivalTime(booking.BookingID);
        }
        else if (urlParamType == UrlParamType.Unarrived)
        {
            BookingDB.RemoveArrivalTime(booking.BookingID);
        }
        else if (urlParamType == UrlParamType.Cancel)
        {
            BookingDB.UpdateSetCancelledByPatient(booking.BookingID, GetStaffID());
        }
        else if (urlParamType == UrlParamType.Deceased)
        {
            PatientDB.UpdateDeceased(booking.Patient.PatientID, GetStaffID());
            BookingDB.UpdateSetDeceasedByPatient(booking.BookingID);
        }
    }