public IActionResult AddBotPlayer(string gameName) { try { Game game = _gameService.AddBotPlayer(gameName); return(Ok(new AddBotPlayerResponse(game))); } catch (GameException ex) { return(StatusCode(StatusCodes.Status422UnprocessableEntity, ex.Message)); } }