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)); }
public async Task <IEnumerable <ReminderBilling> > GetReminderBillingForPrintByDestinationCode(IEnumerable <Reminder> reminders, CancellationToken token) => (await reminderProcessor.GetReminderBillingItemsForPrintByDestinationCodeAsync(reminders, token)).ToArray();