Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public ServiceJobModel CreateNewServiceJob(string jobId)
 {
     return(ServiceJobModel.CreateNewServiceJob(this.Id, jobId));
 }