internal void UpdateGame(String id, Game game)
        {

            if (TryUpdateGameScore(id, game))
            {
                BroadcastGameScore(id, game);
            }

        }
        private bool TryUpdateGameScore(String id, Game game)
        {
            var theGame = _games[id];
            theGame.AwayError = game.AwayError;
            theGame.AwayHits = game.AwayHits;
            theGame.AwayRuns = game.AwayRuns;
            theGame.AwayTeam = game.AwayTeam;
            theGame.HomeError = game.HomeError;
            theGame.HomeHits = game.HomeHits;
            theGame.HomeRuns = game.HomeRuns;
            theGame.HomeTeam = game.HomeTeam;
            theGame.Inning = game.Inning;
            theGame.IsTopOfInning = game.IsTopOfInning;
            theGame.Outs = game.Outs;

            return true;
        }
 public void UpdateGame(String id, Game game)
 {
     _boxScore.UpdateGame(id, game);
 }
        public IHttpActionResult Put(String id, Game game)
        {
            _hub.UpdateGame(id, game);

            return Ok();
        }
 private void BroadcastGameScore(String id, Game game)
 {
     var theGame = _games[id];
     Clients.All.updateGameScore(theGame);
 }