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)); }
public async Task <ActionResult <TaskSchedule> > Save(TaskSchedule TaskSchedule, CancellationToken token) => await taskScheduleProcessor.SaveAsync(TaskSchedule, token);