示例#1
0
        public async Task <ReminderBillingResult> GetReminderBillingForReprintAsync(string SessionKey, int companyId, ReminderOutputed reminderOutputed)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = (await reminderProcessor.GetReminderBillingItemsForReprintAsync(companyId, reminderOutputed, token)).ToList();

                return new ReminderBillingResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    ReminderBilling = result,
                };
            }, logger));
        }
示例#2
0
 public async Task <IEnumerable <ReminderBilling> > GetReminderBillingForReprint(ReminderSource source, CancellationToken token)
 => (await reminderProcessor.GetReminderBillingItemsForReprintAsync(source.CompanyId, source.ReminderOutputed, token)).ToArray();