russgreen / Transmittal

https://russgreen.github.io/Transmittal/
GNU General Public License v3.0
3 stars 2 forks source link

closes #90 #91

Closed russgreen closed 6 months ago

russgreen commented 6 months ago

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.