Exemplo n.º 1
0
        private void OnCreateGame()
        {
            var game = new Game();

            game.Name = GameName;
            game      = GameDataService.CreateGame(game);
            Match match = new Match();

            match.UserId = LoginUser.Id;
            match.GameId = game.Id;
            MatchDataService.CreateMatch(match);
            LoadGames();
        }