public async Task <TransactionResult> CreateTransactionAsync(BankTransaction transaction) { var result = await _instrumentor.ApplyAsync( () => _instrumentedBankRepository.CreateTransactionAsync(transaction), nameof(InstrumentedBankRepository)); return(result); }
public async Task AddPaymentAsync(PaymentRecord paymentRecord) { await _instrumentor.ApplyAsync( () => _instrumentedPaymentsRepository.AddPaymentAsync(paymentRecord), "InstrumentedAddPaymentRepository"); }