app/controllers/DestinationsController.java
@Security.Authenticated(SecureSession.class)
    public CompletionStage<Result> createEditRequest(Http.Request request) {
        return supplyAsync(() -> {
            int profileId = SessionController.getCurrentUserId(request);
            Form<DestinationRequest> changeForm = requestForm.bindFromRequest(request);
            List<Integer> toAdd = listOfTravellerTypesToTravellerTypeId(changeForm.get().getToAddList());
            List<Integer> toRemove = listOfTravellerTypesToTravellerTypeId(changeForm.get().getToRemoveList());
            createChangeRequest(profileId, changeForm.get().getDestinationId(), toAdd, toRemove);
            return redirect("/destinations/show/true/0").flashing("success", "Request sent.");
        });
    }
/**
     * Endpoint method for a user to create a destination edit request
     *
     * @param request the user request to edit the destination
     * @return CompletionStage redirecting to the destinations page
     * @apiNote POST /destinations/type/request
     */
Endpoint method for a user to create a destination edit request
@param request the user request to edit the destination
@return CompletionStage redirecting to the destinations page
@apiNote POST /destinations/type/request
Endpoint method for a user to create a destination edit request @param request the user request to edit the destination @return CompletionStage redirecting to the destinations page @apiNote POST / destinations / type / request
@Security.Authenticated(SecureSession.class)
    public CompletionStage<Result> createEditRequest(Http.Request request) {
        return supplyAsync(() -> {
            int profileId = SessionController.getCurrentUserId(request);
            Form<DestinationRequest> changeForm = requestForm.bindFromRequest(request);
            List<Integer> toAdd = listOfTravellerTypesToTravellerTypeId(changeForm.get().getToAddList());
            List<Integer> toRemove = listOfTravellerTypesToTravellerTypeId(changeForm.get().getToRemoveList());
            createChangeRequest(profileId, changeForm.get().getDestinationId(), toAdd, toRemove);
            return redirect("/destinations/show/true/0").flashing("success", "Request sent.");
        });
    }
@ Security . Authenticated ( SecureSession . class ) public CompletionStage < Result > createEditRequest ( Http . Request request ) { return supplyAsync ( ( ) -> { int profileId = SessionController . getCurrentUserId ( request ) ; Form < DestinationRequest > changeForm = requestForm . bindFromRequest ( request ) ; List < Integer > toAdd = listOfTravellerTypesToTravellerTypeId ( changeForm . get ( ) . getToAddList ( ) ) ; List < Integer > toRemove = listOfTravellerTypesToTravellerTypeId ( changeForm . get ( ) . getToRemoveList ( ) ) ; createChangeRequest ( profileId , changeForm . get ( ) . getDestinationId ( ) , toAdd , toRemove ) ; return redirect ( "/destinations/show/true/0" ) . flashing ( "success" , "Request sent." ) ; } ) ; }
Endpoint method for a user to create a destination edit request
 @param request the user request to edit the destination
 @return CompletionStage redirecting to the destinations page
 @apiNote POST /destinations/type/request
Endpoint method for a user to create a destination edit request @param request the user request to edit the destination @return CompletionStage redirecting to the destinations page @apiNote POST / destinations / type / request