app/repository/TreasureHuntRepository.java
public CompletionStage<Integer> deleteTreasureHunt(int treasureHuntId){
        return supplyAsync(() -> {
            ebeanServer.find(TreasureHunt.class).where().eq("treasureHuntId", treasureHuntId).delete();
            return 1;
        });
    }
/**
     * Deletes a TreasureHunt from the database
     *
     * @param treasureHuntId id of the treasureHunt the user wishes to delete
     */
Deletes a TreasureHunt from the database
@param treasureHuntId id of the treasureHunt the user wishes to delete
Deletes a TreasureHunt from the database @param treasureHuntId id of the treasureHunt the user wishes to delete
public CompletionStage<Integer> deleteTreasureHunt(int treasureHuntId){
        return supplyAsync(() -> {
            ebeanServer.find(TreasureHunt.class).where().eq("treasureHuntId", treasureHuntId).delete();
            return 1;
        });
    }
public CompletionStage < Integer > deleteTreasureHunt ( int treasureHuntId ) { return supplyAsync ( ( ) -> { ebeanServer . find ( TreasureHunt . class ) . where ( ) . eq ( "treasureHuntId" , treasureHuntId ) . delete ( ) ; return 1 ; } ) ; }
Deletes a TreasureHunt from the database
 @param treasureHuntId id of the treasureHunt the user wishes to delete
Deletes a TreasureHunt from the database @param treasureHuntId id of the treasureHunt the user wishes to delete