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));
        }
Example #2
0
 public async Task <IEnumerable <TaskScheduleHistory> > GetItems(TaskScheduleHistorySearch option, CancellationToken token)
 => (await taskScheduleHistoryProcessor.GetAsync(option, token)).ToArray();