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