@model IEnumerable @{ ViewBag.Title = "Forums"; }

Welcome to the forums.

@foreach (var cat in Model) { @foreach (var subcat in cat.Children) { }
@cat.Name Topics Posts Most Recent Post
@Html.ActionLink(subcat.Name, "ViewForum", "Forum", new { id = subcat.Id }, null)

@subcat.Description

@if(subcat.Children.Length > 0) {

Subforums: @foreach(var subfrm in subcat.Children) { @Html.ActionLink(subfrm.Name, "ViewForum", "Forum", new { id = subfrm.Id }, null)  }

}
@subcat.Topics.Length
}