Exemplo n.º 1
0
        /// <summary>
        /// Saves this work item.
        /// </summary>
        public virtual void Save()
        {
            if (_jobId == 0)
            {
                throw new NullReferenceException("This work item has no job association, and cannot be saved.");
            }
            if (_emailAddress == null)
            {
                throw new NullReferenceException("Cannot save work item with empty email address.");
            }

            // Save item
            WorkItemData dataUtil = GetWorker();

            dataUtil.WorkItemEdit(_jobId, _emailAddress, _status, _info);
        }