C#C
C#3y ago
SWEETPONY

❔ How to join 3 collections?

I have following logic:
var territoriesIDs = _parameters.TerritoriesIDs;

var accessGroups = await _accessGroupClient.GetByTerritoriesIds( territoriesIDs );
var accessGroupsIds = accessGroups.Select( accessGroup => accessGroup.Id );

var departments = await _departmentClient.GetByAccessGroupsIds( accessGroupsIds );
var departmentsIds = departments.Select( department => department.Id );

var subjects = await _subjectClient.GetByDepartmentsIds( departmentsIds );


I'd like to join accessGroups, departments, subjects, and get some properties from that collections
How can I do it?
Was this page helpful?