In view You can wright follwing code
<table>
<tr>
<th> Category Name </th>
<th> Department </th>
<th> More (can be blank) </th>
</tr>
@if(Model!=null)
{
<pre lang="c#">
foreach(catItem in Model)
{
<tr>
<Th> @catItem.CategoryName </Th>
<Th> @catItem.Department </Th>
<Th> Link for expend collapse </Th>
if(catItem.SubCategories!=null)
{
foreach(subcatItem in catItem.SubCategories)
{
<tr>
<Th> col name </Th>
........
}
}
</Tr>
}
}