public IHttpActionResult Create()
        {
            var userId = User.Identity.GetUserId();
            var userName = User.Identity.GetUserName();
            var game = new Game
            {
                FirstPlayerId = userId,
                FirstPlayerUserName = userName
            };

            this.data.Game.Add(game);
            this.data.SaveChanges();

            var gameState = this.data.Game.All()
              .Where(x => x.Id == game.Id)
              .Select(x => new { Id = x.Id, PlayerFigure = KingSurvivalGameState.TurnKing, playerId = x.FirstPlayerId, gameState = x.State })
              .FirstOrDefault();

            return this.Ok(gameState);
        }
 public WebRenderer(IHubCallerConnectionContext<dynamic> hubCallerConnectionContext, Game game, IKingSurvivalData kingSurvivalData)
 {
     this.hubCallerConnectionContext = hubCallerConnectionContext;
     this.game = game;
     this.data = kingSurvivalData;
 }