private static SupportingAssignmentDetailsCollection BuildSupportingAssignmentDetailsCollection(AssignmentDetailsCollection assignments, Hashtable changeDates)
        {
            SupportingAssignmentDetailsCollection supportingAssignments = new SupportingAssignmentDetailsCollection();
            SupportingAssignmentDetails supportAssignment = null;

             foreach (AssignmentDetails objAssignment in assignments)
                {
                    int wmSourceID = objAssignment.ID;
                    supportAssignment = new SupportingAssignmentDetails();
                    supportAssignment.Assignment = objAssignment;
                    //Set the SupportingDataChangeDate ... look up in hashtable using WMSourceID as the key
                    if (changeDates.ContainsKey(wmSourceID))
                    {
                        supportAssignment.SupportingDataChangeDate = DateTime.Parse(changeDates[wmSourceID].ToString());
                    }
                    else
                    {
                        supportAssignment.SupportingDataChangeDate = DateTime.MinValue;
                    }
                    supportingAssignments.Add(supportAssignment);
                }

            return supportingAssignments;
        }
        public static SupportingAssignmentDetailsCollection GetSupportingAssignmentsChanged(string userID, string sourceSystem, DateTime lastRunDate)
        {
            AssignmentDetailsCollection assignments = new AssignmentDetailsCollection();
            SupportingAssignmentDetailsCollection supportingAssignments = new SupportingAssignmentDetailsCollection();
            Hashtable supportingDataChangesDates = new Hashtable();

            assignments = AssignmentDetailsCollection.GetAssignmentsSupportingDataChanged(userID, sourceSystem, lastRunDate, out supportingDataChangesDates);

            //Build a Support Assignment Details Collection.
            if (assignments.Count > 0 && supportingDataChangesDates.Count > 0)
            {
                supportingAssignments = BuildSupportingAssignmentDetailsCollection(assignments, supportingDataChangesDates);
            }

            return supportingAssignments;
        }