public async Task <ReminderResult> GetCancelDecisionItemsAsync(string SessionKey, ReminderSearch condition, ReminderCommonSetting setting, IEnumerable <ReminderSummarySetting> summary) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = (await reminderProcessor.GetCancelDecisionItemsAsync(condition, setting, summary, token)).ToList(); return new ReminderResult { ProcessResult = new ProcessResult { Result = true }, Reminder = result, }; }, logger)); }
public async Task <IEnumerable <Reminder> > GetCancelDecisionItems(ReminderSearch option, CancellationToken token) => (await reminderProcessor.GetCancelDecisionItemsAsync(option, option.Setting, option.SummarySettings, token)).ToArray();