示例#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);
 }