async Task StoreWallet(Wallet wallet) { await SqlExecutor.ExecuteStoreProcedureScalar(_configuration.ConnectionString, "Wallet_Store", new[] { new SqlParameter("@Name", wallet.Name), new SqlParameter("@Balance", wallet.Balance) }); }
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) }); }