Beispiel #1
0
        public async Task <ReminderBillingResult> GetReminderBillingForPrintAsync(string SessionKey, int companyId, int[] reminderIds)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = (await reminderProcessor.GetReminderBillingItemsForPrintAsync(companyId, reminderIds, token)).ToList();

                return new ReminderBillingResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    ReminderBilling = result,
                };
            }, logger));
        }
Beispiel #2
0
 public async Task <IEnumerable <ReminderBilling> > GetReminderBillingForPrint(ReminderSource source, CancellationToken token)
 => (await reminderProcessor.GetReminderBillingItemsForPrintAsync(source.CompanyId, source.ReminderIds, token)).ToArray();