Exemplo n.º 1
0
        public async Task DeleteGame(Guid id)
        {
            var game = _gamerStorage.GetGamerLastPendingGame(id);

            if (game != null)
            {
                _gamerStorage.DeleteGame(game.Id);
            }
            await Task.Run(() =>
            {
                _mqttHandler.SyncClientGames();
            });
        }
Exemplo n.º 2
0
        public IActionResult Register(Gamer model)
        {
            var gamer = _dbcontextMethods.CreateOrUpdateGamer(model);
            var game  = _dbcontextMethods.CreateGame(gamer.Id);

            _handler.SyncClientGames();
            return(RedirectToAction("index", "Registration"));
        }