I have a database with this two tables
ProductCategory
IDCat
Name
Description
ProductSubCategories
IDSub
Name
IDCat
This tables are related trought IDCat.
How can i do with LINQ to retrieve the list of Category and SubCategory grouped by Category ??
In my PartialView I would like create a menu with Category and SubCategories like this :
Category1
SubCategory1
SubCategory2
SubCategory3
Category2
SubCategory1
SubCategory2
SubCategory3
Category3
SubCategory1