Esempio n. 1
0
 public async Task DeleteCardEntryAsync(BingoEntry cardEntry)
 {
     if (cardEntry == null)
     {
         throw new ArgumentNullException(nameof(cardEntry));
     }
     var ope = TableOperation.Delete(cardEntry);
     await _bingoEntries.ExecuteAsync(ope);
 }
Esempio n. 2
0
        public async Task DeleteCardUserAsync(BingoEntry cardEntry)
        {
            var cardUser = await FindCardUserAsync(cardEntry.GameId, cardEntry.CardId);

            if (cardUser == null)
            {
                return;
            }
            var ope = TableOperation.Delete(cardUser);
            await _cardUsers.ExecuteAsync(ope);
        }
Esempio n. 3
0
 public async Task AddCardEntryAsync(string userId)
 {
     var newItem = new BingoEntry(BingoEntryType.Card, userId);
     await _bingoEntries.ExecuteAsync(TableOperation.Insert(newItem));
 }