public async Task <OperationResult> AddPayment(Payment payment)
        {
            await savePaymentDbAccess.AddPayment(payment)
            .ConfigureAwait(true);

            return(OperationResult.Succeeded());
        }
示例#2
0
        public async Task <OperationResult> AddPayment(Payment payment)
        {
            payment.ChargedAccount.AddPaymentAmount(payment);
            payment.TargetAccount?.AddPaymentAmount(payment);

            await savePaymentDbAccess.AddPayment(payment)
            .ConfigureAwait(false);

            return(OperationResult.Succeeded());
        }