public async Task <ReminderOutputedResult> GetOutputedItemsAsync(string SessionKey, ReminderOutputedSearch search) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var processResult = new ProcessResult(); var result = (await reminderProcessor.GetOutputedItemsAsync(search, token)).ToList(); if (result != null) { processResult.Result = true; } return new ReminderOutputedResult { ProcessResult = processResult, ReminderOutputed = result, }; }, logger)); }
public async Task <IEnumerable <ReminderOutputed> > GetOutputedItems(ReminderOutputedSearch option, CancellationToken token) => (await reminderProcessor.GetOutputedItemsAsync(option, token)).ToArray();