Example #1
0
        public void GameModelUpdate(GameModel gameModel)
        {
            Database.Game    game;
            IList <GameTeam> gameTeamList;

            game = _gameParse.ParseGame(gameModel);
            _gameUpdate.GameUpdateTransaction(game);
            gameTeamList = _gameTeamParse.ParseGameTeam(gameModel);
            foreach (GameTeam gameTeam in gameTeamList)
            {
                _gameTeamUpdate.GameTeamUpdateTransaction(gameTeam);
            }
        }
Example #2
0
        public void GameModelInsert(GameModel gameModel)
        {
            Database.Game    game;
            IList <GameTeam> gameTeamList;

            game             = _gameParse.ParseGame(gameModel);
            game.GameID      = _gameInsert.GameAdd(game) ?? 0;
            gameModel.gameID = game.GameID;
            gameTeamList     = _gameTeamParse.ParseGameTeam(gameModel);
            foreach (GameTeam gameTeam in gameTeamList)
            {
                _gameTeamInsert.GameTeamAdd(gameTeam);
            }
        }