@Transactional public Boolean deleteGame(Long id) { Game deleteMe = gameService.findGameByID(this.getAllGames(), id); if (deleteMe != null) { entityManager.remove(deleteMe); return true; } return false; }
public Game getGameById(Long id) { return gameService.findGameByID(this.getAllGames(), id); }