public IActionResult AddPlayer([FromBody] DummyGame dummyGame)
        {
            if (ModelState.IsValid)
            {
                HttpContext.Session.SetString("Player", dummyGame.PlayerName);

                RestRequest request = new RestRequest("/api/game/addplayer", Method.POST);
                request.AddHeader("Content-type", "application/json");
                request.AddJsonBody(new { gameName = dummyGame.GameName, PlayerName = dummyGame.PlayerName });

                logger.LogInformation($"Adding player '{dummyGame.PlayerName}' to game '{dummyGame.GameName}'");

                var clientresponse = client.Execute(request);

                if (clientresponse.IsSuccessful)
                {
                    return(Ok());
                }
                else
                {
                    return(NotFound());
                }
            }
            else
            {
                return(NotFound());
            }
        }
        public IActionResult StartGame([FromBody] DummyGame gameInstance)
        {
            RestRequest request          = new RestRequest($"/api/game/StartGame?gameName={gameInstance.GameName}", Method.POST);
            var         ludoGameResponse = client.Execute(request);

            logger.LogInformation($"Player '{gameInstance.PlayerName}' is starting game '{gameInstance.GameName}'");

            return(Ok());
        }
        public int RollDie([FromBody] DummyGame gameInstance)
        {
            RestRequest request = new RestRequest($"/api/game/RollDie", Method.POST);

            request.AddHeader("Content-type", "application/json");
            request.AddJsonBody(new
            {
                GameName   = gameInstance.GameName,
                PlayerName = gameInstance.PlayerName
            });

            var ludoGameResponse = client.Execute <int>(request);

            logger.LogInformation($"Player '{gameInstance.PlayerName}' is rolling the dice in game '{gameInstance.GameName}'");

            return(ludoGameResponse.Data);
        }