private void CreateHierarchy() { var architectsWithoutPrincipal = Architects.FindAll(a => a.PrincipalId == -2).OrderByDescending(a => a.Pesel).ToList(); architectsWithoutPrincipal.ForEach(CalculatePrincipalId); _lastArchitectId = architectsWithoutPrincipal.Last().Id; }
private void ShuffleArchitects(ArchitectureTypeEnum type) { AvailableArchitects[type] = Architects.FindAll(a => a.Specialization == type); AvailableArchitects[type] = ShuffleList(AvailableArchitects[type]); var tmp = AvailableArchitects[type].ToList().GroupBy(a => a.Id).ToList(); }