Beispiel #1
0
        public bool InsertGameRoom(Logic.Game.GameRoom v)
        {
            GameRoomXML gamexml = new GameRoomXML(v);

            Database.LinqToSql.GameRoom toIns = new Database.LinqToSql.GameRoom();
            toIns.GameId   = v.GetGameNum();
            toIns.isActive = v.IsGameActive();
            toIns.RoomId   = v.Id;
            toIns.GameXML  = GameRoomToXElement(gamexml);
            toIns.Replay   = v.GetGameReplay();
            return(_controller.InsertGameRoom(toIns));
        }
Beispiel #2
0
        public bool UpdateGameRoom(Logic.Game.GameRoom g)
        {
            bool ans = UpdateGameRoomPotSize(g.GetPotSize(), g.Id);

            ans = ans & _controller.UpdateGameRoom(g.Id, g.GetGameNum(), GameRoomToXElement(new GameRoomXML(g)), g.IsGameActive(), g.GetGameReplay());
            return(ans);
        }