app/controllers/TravellersController.java
@Security.Authenticated(SecureSession.class)
    public CompletionStage<Result> displayTravellersPhotos(Http.Request request, Integer profileId) {
        Integer profId = SessionController.getCurrentUserId(request);
        return profileRepository.findById(profId).thenApplyAsync(profile -> {
            if (profile.isPresent()) {
                List<Photo> displayPhotoList = getTravellersPhotos(profileId);
                return ok(travellersPhotos.render(displayPhotoList, profile.get(), profileRepository.getExistingProfileByProfileId(profileId), request, messagesApi.preferred(request)));
            } else {
                return redirect("/travellers");
            }
        });
    }
/**
     * this method shows the travellers photos on a new page
     * @param profileId id for a particular user you want to displays the images for
     * @return render traveller photo page
     */
this method shows the travellers photos on a new page
@param profileId id for a particular user you want to displays the images for
@return render traveller photo page
this method shows the travellers photos on a new page @param profileId id for a particular user you want to displays the images for @return render traveller photo page
@Security.Authenticated(SecureSession.class)
    public CompletionStage<Result> displayTravellersPhotos(Http.Request request, Integer profileId) {
        Integer profId = SessionController.getCurrentUserId(request);
        return profileRepository.findById(profId).thenApplyAsync(profile -> {
            if (profile.isPresent()) {
                List<Photo> displayPhotoList = getTravellersPhotos(profileId);
                return ok(travellersPhotos.render(displayPhotoList, profile.get(), profileRepository.getExistingProfileByProfileId(profileId), request, messagesApi.preferred(request)));
            } else {
                return redirect("/travellers");
            }
        });
    }
@ Security . Authenticated ( SecureSession . class ) public CompletionStage < Result > displayTravellersPhotos ( Http . Request request , Integer profileId ) { Integer profId = SessionController . getCurrentUserId ( request ) ; return profileRepository . findById ( profId ) . thenApplyAsync ( profile -> { if ( profile . isPresent ( ) ) { List < Photo > displayPhotoList = getTravellersPhotos ( profileId ) ; return ok ( travellersPhotos . render ( displayPhotoList , profile . get ( ) , profileRepository . getExistingProfileByProfileId ( profileId ) , request , messagesApi . preferred ( request ) ) ) ; } else { return redirect ( "/travellers" ) ; } } ) ; }
this method shows the travellers photos on a new page
 @param profileId id for a particular user you want to displays the images for
 @return render traveller photo page
this method shows the travellers photos on a new page @param profileId id for a particular user you want to displays the images for @return render traveller photo page