app/controllers/TravellersController.java
@Security.Authenticated(SecureSession.class)
    public CompletionStage<Result> show(Http.Request request, Integer offset) {
        Integer profId = SessionController.getCurrentUserId(request);
        PaginationHelper paginationHelper = new PaginationHelper(offset, offset, offset, true, true, profileRepository.getNumProfiles());
        paginationHelper.alterNext(12);
        paginationHelper.alterPrevious(12);
        paginationHelper.checkButtonsEnabled();

        return profileRepository.findById(profId).thenApplyAsync(profile -> {
            if (profile.isPresent()) {
                undoStackRepository.clearStackOnAllowed(profile.get());

                List<Profile> profiles = profileRepository.getAllTravellersPaginate(offset);
                return ok(travellers.render(form, profiles, photoList, profile.get(), Country.getInstance().getAllCountries(), new PartnerFormData(), paginationHelper, request, messagesApi.preferred(request)));
            } else {
                return redirect("/profile");
            }
        });
    }
/**
     * This method shows the travellers page on the screen
     * @return result of the rendering of the travellers page
     */
This method shows the travellers page on the screen
@return result of the rendering of the travellers page
This method shows the travellers page on the screen @return result of the rendering of the travellers page
@Security.Authenticated(SecureSession.class)
    public CompletionStage<Result> show(Http.Request request, Integer offset) {
        Integer profId = SessionController.getCurrentUserId(request);
        PaginationHelper paginationHelper = new PaginationHelper(offset, offset, offset, true, true, profileRepository.getNumProfiles());
        paginationHelper.alterNext(12);
        paginationHelper.alterPrevious(12);
        paginationHelper.checkButtonsEnabled();
        return profileRepository.findById(profId).thenApplyAsync(profile -> {
            if (profile.isPresent()) {
                undoStackRepository.clearStackOnAllowed(profile.get());
                List<Profile> profiles = profileRepository.getAllTravellersPaginate(offset);
                return ok(travellers.render(form, profiles, photoList, profile.get(), Country.getInstance().getAllCountries(), new PartnerFormData(), paginationHelper, request, messagesApi.preferred(request)));
            } else {
                return redirect("/profile");
            }
        });
    }
@ Security . Authenticated ( SecureSession . class ) public CompletionStage < Result > show ( Http . Request request , Integer offset ) { Integer profId = SessionController . getCurrentUserId ( request ) ; PaginationHelper paginationHelper = new PaginationHelper ( offset , offset , offset , true , true , profileRepository . getNumProfiles ( ) ) ; paginationHelper . alterNext ( 12 ) ; paginationHelper . alterPrevious ( 12 ) ; paginationHelper . checkButtonsEnabled ( ) ; return profileRepository . findById ( profId ) . thenApplyAsync ( profile -> { if ( profile . isPresent ( ) ) { undoStackRepository . clearStackOnAllowed ( profile . get ( ) ) ; List < Profile > profiles = profileRepository . getAllTravellersPaginate ( offset ) ; return ok ( travellers . render ( form , profiles , photoList , profile . get ( ) , Country . getInstance ( ) . getAllCountries ( ) , new PartnerFormData ( ) , paginationHelper , request , messagesApi . preferred ( request ) ) ) ; } else { return redirect ( "/profile" ) ; } } ) ; }
This method shows the travellers page on the screen
 @return result of the rendering of the travellers page
This method shows the travellers page on the screen @return result of the rendering of the travellers page