public async Task <OperationResult> AddPayment(Payment payment) { await savePaymentDbAccess.AddPayment(payment) .ConfigureAwait(true); return(OperationResult.Succeeded()); }
public async Task <OperationResult> AddPayment(Payment payment) { payment.ChargedAccount.AddPaymentAmount(payment); payment.TargetAccount?.AddPaymentAmount(payment); await savePaymentDbAccess.AddPayment(payment) .ConfigureAwait(false); return(OperationResult.Succeeded()); }