/// <summary> /// Adds the specified workflow template condition event. /// </summary> /// <param name="workflowTemplateConditionEvent">The workflow template condition event.</param> /// <returns></returns> public tbl_WorkflowTemplateConditionEvent Add(tbl_WorkflowTemplateConditionEvent workflowTemplateConditionEvent) { if (workflowTemplateConditionEvent.ID == Guid.Empty) { workflowTemplateConditionEvent.ID = Guid.NewGuid(); } _dataContext.tbl_WorkflowTemplateConditionEvent.AddObject(workflowTemplateConditionEvent); _dataContext.SaveChanges(); return(workflowTemplateConditionEvent); }
/// <summary> /// Updates the specified workflow template condition event. /// </summary> /// <param name="workflowTemplateConditionEvent">The workflow template condition event.</param> public void Update(tbl_WorkflowTemplateConditionEvent workflowTemplateConditionEvent) { _dataContext.SaveChanges(); }