private static JobWorkflowRecordSet ToRecordSet(JobWorkflow jobWorkflow) { return(new JobWorkflowRecordSet { EndDate = jobWorkflow.EndDate, Id = jobWorkflow.Id, JobType = jobWorkflow.JobType, Message = jobWorkflow.Message, ProductId = jobWorkflow.ProductId, StartDate = jobWorkflow.StartDate, State = jobWorkflow.State, UserId = jobWorkflow.UserId }); }
public void Update(JobWorkflow jobWorkflow) { Db.RemoveAll(x => x.Id == jobWorkflow.Id); Db.Add(ToRecordSet(jobWorkflow)); }
public Guid Create(JobWorkflow jobWorkflow) { Db.Add(ToRecordSet(jobWorkflow)); return(jobWorkflow.Id); }