コード例 #1
0
        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());
        }