/// <summary> /// Adds work items based on email addresses in a recipient list. /// </summary> /// <remarks> /// All new items and items that exists in both list will have their /// status set to NotStarted. /// </remarks> /// <param name="recipientListId">The recipient list id.</param> /// <returns>The number of new work items</returns> public int AddWorkItemsFromRecipientList(int recipientListId) { WorkItemData dataUtil = GetWorker <WorkItemData>(); int count = dataUtil.WorkItemInsertFromRecipientList(_id, recipientListId, JobWorkStatus.NotStarted); // Remove any workitems from memory _workItems = null; // Counters are no longer valid ResetStatusCounters(); return(count); }