app/repository/NationalityRepository.java
public CompletionStage<Optional<Integer>> delete(int id) {
        return supplyAsync(() -> {
            try {
                Nationality.find.deleteById(Integer.toString(id));
                return Optional.of(1);
            } catch (Exception e) {
                return Optional.empty();
            }
        }, executionContext);
    }
/**
     * Method to delete a passed Nationality from the database
     * @param id id of the entry to be deleted.
     * @return CompletionStage holding an Optional holding '1' for success and empty for failure
     */
Method to delete a passed Nationality from the database
@param id id of the entry to be deleted.
@return CompletionStage holding an Optional holding '1' for success and empty for failure
Method to delete a passed Nationality from the database @param id id of the entry to be deleted . @return CompletionStage holding an Optional holding ' 1 ' for success and empty for failure
public CompletionStage<Optional<Integer>> delete(int id) {
        return supplyAsync(() -> {
            try {
                Nationality.find.deleteById(Integer.toString(id));
                return Optional.of(1);
            } catch (Exception e) {
                return Optional.empty();
            }
        }, executionContext);
    }
public CompletionStage < Optional < Integer > > delete ( int id ) { return supplyAsync ( ( ) -> { try { Nationality . find . deleteById ( Integer . toString ( id ) ) ; return Optional . of ( 1 ) ; } catch ( Exception e ) { return Optional . empty ( ) ; } } , executionContext ) ; }
Method to delete a passed Nationality from the database
 @param id id of the entry to be deleted.
Method to delete a passed Nationality from the database @param id id of the entry to be deleted .