Пример #1
0
        public async Task <ReminderBillingResult> GetReminderBillingForPrintByDestinationCodeAsync(string SessionKey, IEnumerable <Reminder> reminders)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = (await reminderProcessor.GetReminderBillingItemsForPrintByDestinationCodeAsync(reminders, token)).ToList();

                return new ReminderBillingResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    ReminderBilling = result,
                };
            }, logger));
        }
Пример #2
0
 public async Task <IEnumerable <ReminderBilling> > GetReminderBillingForPrintByDestinationCode(IEnumerable <Reminder> reminders, CancellationToken token)
 => (await reminderProcessor.GetReminderBillingItemsForPrintByDestinationCodeAsync(reminders, token)).ToArray();