public async Task <ScheduledTask> CreateScript(ScheduledTaskData task) { logger.LogInformation($"Creating scheduled task {task.Name}"); return(await scheduledtaskservice.GetById(await scheduledtaskservice.Create(task))); }