Exemple #1
0
        public async Task DeleteCard(int id)
        {
            Card card = await _context.Cards.FindAsync(id);

            _context.Cards.Remove(card);
            await _context.SaveChangesAsync();
        }
Exemple #2
0
        public async Task DeleteGamePlayer(int id)
        {
            GamePlayer gameBot = await _context.GamePlayers.FindAsync(id);

            _context.GamePlayers.Remove(gameBot);
            await _context.SaveChangesAsync();
        }
Exemple #3
0
        public async Task DeleteGame(int id)
        {
            Game game = await _context.Games.FindAsync(id);

            _context.Games.Remove(game);
            await _context.SaveChangesAsync();
        }