示例#1
0
        /// <summary>
        /// Adds the specified mass workflow.
        /// </summary>
        /// <param name="massWorkflow">The mass workflow.</param>
        /// <returns></returns>
        public tbl_MassWorkflow Add(tbl_MassWorkflow massWorkflow)
        {
            if (massWorkflow.ID == Guid.Empty)
            {
                massWorkflow.ID = Guid.NewGuid();
            }
            _dataContext.tbl_MassWorkflow.AddObject(massWorkflow);
            _dataContext.SaveChanges();

            return(massWorkflow);
        }
示例#2
0
 /// <summary>
 /// Updates the specified mass workflow.
 /// </summary>
 /// <param name="massWorkflow">The mass workflow.</param>
 public void Update(tbl_MassWorkflow massWorkflow)
 {
     _dataContext.SaveChanges();
 }