public async Task PerformPayment(Model.Invoice invoice, int userId) { var paymentInfo = await _paymentServiceAdapter.ProcessPaymentAsync(userId, invoice.InvoiceId.ToString()); invoice.ProcessPayment(paymentInfo); await _invoiceRepository.AddPaymentInfo(invoice); }