/// <summary> /// Searches the specified job for work items that matches /// a specified string. Will search all emails with a LIKE clause. /// </summary> /// <param name="jobId">The job id.</param> /// <param name="searchFor">The email to search for.</param> /// <returns>A collection of Work Items. The collection count can be 0</returns> public static JobWorkItems Search(int jobId, string searchFor) { JobWorkItems items = new JobWorkItems(); WorkItemData dataUtil = GetWorker(); DataTable workItemsTable = dataUtil.WorkItemSearch(jobId, searchFor); FillFromDataTable(workItemsTable, items); return(items); }