public static ServiceJobModel CreateNewServiceJob(string serviceId, string jobId) { var model = new ServiceJobModel(); model.Id = Guid.NewGuid().ToString(); model.ServiceId = serviceId; model.JobId = jobId; Workspace.CurrentData.ServiceJobs.Add(model); return(model); }
public ServiceJobModel CreateNewServiceJob(string jobId) { return(ServiceJobModel.CreateNewServiceJob(this.Id, jobId)); }