public async Task <TaskScheduleHistoryResult> GetItemsAsync(string SessionKey, TaskScheduleHistorySearch searchConditions) { return(await authorizationProcess.DoAuthorizeAsync(SessionKey, async token => { var result = (await taskScheduleHistoryProcessor.GetAsync(searchConditions, token)).ToList(); return new TaskScheduleHistoryResult { ProcessResult = new ProcessResult { Result = true }, TaskScheduleHistoryList = result, }; }, logger)); }
public async Task <IEnumerable <TaskScheduleHistory> > GetItems(TaskScheduleHistorySearch option, CancellationToken token) => (await taskScheduleHistoryProcessor.GetAsync(option, token)).ToArray();