I have a slight problem determining the right data structure for one of my problems at work. What I have to do is create a "company structure tree". In short - someone is a boss of all bosses (so he is first (or zero) level of the tree) and then there are rest of the workers, but as you know, someone can be someone elses boss etc. The tree has to go max 5 levels deep. I don't really know how to create this, even from database point of view.
I've already tried custom ViewModels and some Dictionaries, but I feel like there's a working way for this, that doesn't include 5-level nested Dictionary or List.
If anyone would know how to do this, any help would be greatly appreciated.
Cheers.