/// <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); }
/// <summary> /// Updates the specified mass workflow. /// </summary> /// <param name="massWorkflow">The mass workflow.</param> public void Update(tbl_MassWorkflow massWorkflow) { _dataContext.SaveChanges(); }