I have a generic List (i.e. List<Subjects>). Which can contain list of categories and their subjects. But i need to retrieve only unique category names and their list of subjects. Usually, it returns like this...
I don't need like this. The list should contain only...
Cat1 Sub1, Sub2
Cat2 Sub3, Sub4