/// <summary>
        /// Adds the specified workflow template element period.
        /// </summary>
        /// <param name="workflowTemplateElementPeriod">The workflow template element period.</param>
        /// <returns></returns>
        public tbl_WorkflowTemplateElementPeriod Add(tbl_WorkflowTemplateElementPeriod workflowTemplateElementPeriod)
        {
            if (workflowTemplateElementPeriod.ID == Guid.Empty)
            {
                workflowTemplateElementPeriod.ID = Guid.NewGuid();
            }
            _dataContext.tbl_WorkflowTemplateElementPeriod.AddObject(workflowTemplateElementPeriod);
            _dataContext.SaveChanges();

            return(workflowTemplateElementPeriod);
        }
 /// <summary>
 /// Updates the specified workflow template element period.
 /// </summary>
 /// <param name="workflowTemplateElementPeriod">The workflow template element period.</param>
 public void Update(tbl_WorkflowTemplateElementPeriod workflowTemplateElementPeriod)
 {
     _dataContext.SaveChanges();
 }