Beispiel #1
0
 public async Task SaveChangesAsync()
 {
     try
     {
         await Context.SaveChangesAsync();
     }
     catch (DbUpdateConcurrencyException duce)
     {
         throw duce;
     }
     catch (DbUpdateException due)
     {
         throw due;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public async Task RemoveAllWalletsAndTransactions()
 {
     _context.PaymentTransactions.RemoveRange(_context.PaymentTransactions.ToList());
     _context.Wallets.RemoveRange(_context.Wallets.ToList());
     await _context.SaveChangesAsync();
 }
 public async Task RemoveAllWallets()
 {
     _context.Wallets.RemoveRange(_context.Wallets.ToList());
     await _context.SaveChangesAsync();
 }