Optimized GetProjectDirectory method in ContactDirectoryService
Modified the GetProjectDirectory method in the ContactDirectoryService class to improve performance. The updated code first retrieves all people with the GetPeople_All().ToList() method, and then applies the filter for the Archive status only if IncludeArchivedUsers is false. This ensures that the people list includes all users initially, and then filters out archived users if necessary, potentially reducing the number of operations performed when IncludeArchivedUsers is true.
Optimized GetProjectDirectory method in ContactDirectoryService
Modified the GetProjectDirectory method in the ContactDirectoryService class to improve performance. The updated code first retrieves all people with the GetPeople_All().ToList() method, and then applies the filter for the Archive status only if IncludeArchivedUsers is false. This ensures that the people list includes all users initially, and then filters out archived users if necessary, potentially reducing the number of operations performed when IncludeArchivedUsers is true.