Ejemplo n.º 1
0
 async Task StoreWallet(Wallet wallet)
 {
     await SqlExecutor.ExecuteStoreProcedureScalar(_configuration.ConnectionString, "Wallet_Store",
                                                   new[]
     {
         new SqlParameter("@Name", wallet.Name),
         new SqlParameter("@Balance", wallet.Balance)
     });
 }
Ejemplo n.º 2
0
 private async Task StoreTransaction(InTransaction transaction)
 {
     await SqlExecutor.ExecuteStoreProcedureScalar(_configuration.ConnectionString, "InTransactions_Store",
                                                   new[]
     {
         new SqlParameter("@TxId", transaction.TxId),
         new SqlParameter("@Amount", transaction.Amount),
         new SqlParameter("@Address", transaction.Address),
         new SqlParameter("@TimeReceived", transaction.TimeReceived),
         new SqlParameter("@Confirmations", transaction.Confirmations)
     });
 }