public static object UpdateJob(string jobName, string jobJson) { Job job = JsonConvert.DeserializeObject <Job>(jobJson); Jobs.Initialize(); Jobs.UpdateJob(jobName, job); return(0); }
public static object CreateJobJson(string jobJson) { Job job = JsonConvert.DeserializeObject <Job>(jobJson); Jobs.Initialize(); Jobs.CreateJob(job); return(0); }
public static object DeleteJob(string jobName) { Jobs.Initialize(); Jobs.DeleteJob(jobName); return(0); }