title="
@Description"
@{
02
List<Menus> myMenu = MyMenu.GetMenus();
03
var
plist = myMenu.Where(m => m.ParentID ==
null
).ToList();
// This will list main menu items on which we'll apply loop to display them.
04
if
(plist !=
&& plist.Count > 0)
05
{
06
<ul class=
"nav"
>
07
@foreach (
pitem
in
plist)
08
09
<li>
10
<a href=
"{URL-Required} title="
@Description">@pitem.Title</a>
11
12
clist = myMenu.Where(m => m.ParentID == pitem.ID).ToList();
13
(clist !=
&& clist.Count > 0)
14
15
<ul>
16
citem
clist)
17
18
<li><a href=
"{URL-Required}"
title=
"@Description"
>@citem.Title</a></li>
19
}
20
</ul>
21
22
23
</li>
24
25
26
27