Пример #1
0
 @Transactional
 public Boolean deleteGame(Long id) {
   Game deleteMe = gameService.findGameByID(this.getAllGames(), id);
   if (deleteMe != null) {
     entityManager.remove(deleteMe);
     return true;
   }
   return false;
 }
Пример #2
0
 public Game getGameById(Long id) {
   return gameService.findGameByID(this.getAllGames(), id);
 }