Esempio n. 1
0
        public async Task <TaskScheduleResult> SaveAsync(string SessionKey, TaskSchedule TaskSchedule)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = await taskScheduleProcessor.SaveAsync(TaskSchedule);

                return new TaskScheduleResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    TaskSchedule = result,
                };
            }, logger));
        }
Esempio n. 2
0
 public async Task <ActionResult <TaskSchedule> > Save(TaskSchedule TaskSchedule, CancellationToken token)
 => await taskScheduleProcessor.SaveAsync(TaskSchedule, token);