Exemplo n.º 1
0
        public async Task <IActionResult> Create([FromBody] CreateGameSessionRequest request)
        {
            _logger.LogInformation("Received request to create player {PlayerName} and game {GameSessionName}", request.PlayerName, request.GameSessionName);
            var newGameResponse = await _gameSessionService.CreateGameAsync(request.PlayerName, request.GameSessionName);

            return(Ok(newGameResponse));
        }