public async Task <int> UpdateAsync(JournalizingOption option, CancellationToken token = default(CancellationToken))
        {
            var count = 0;

            using (var scope = transactionScopeBuilder.Create())
            {
                option.UpdateAt = await dbSystemDateTimeQueryProcessor.GetAsync(token);

                count += await updateMatchingJournalizingQueryProcessor.UpdateAsync(option, token);

                count += await updateReceiptMatchingJournalizingQueryProcessor.UpdateAsync(option, token);

                count += await updateAdvanceReceivedBackupJournaliginzQueryProcessor.UpdateAsync(option, token);

                count += await updateReceiptExcludeJournalizingQueryProcessor.UpdateAsync(option, token);

                scope.Complete();
            }
            return(count);
        }
Esempio n. 2
0
        public async Task <int> UpdateAsync(JournalizingOption option, CancellationToken token = default(CancellationToken))
        {
            option.UpdateAt = await dbSystemDateTimeQueryProcessor.GetAsync(token);

            return(await updateMatchingJournalizingQueryProcessor.UpdateAsync(option, token));
        }