@{
    IEnumerable<dynamic> dataList = Model;
    int parentId = (int)ViewData["parentId"];
    int level = (int)ViewData["level"];
    IEnumerable<dynamic> dataList1 = dataList.Where(c => c.ParentId == parentId).OrderBy(c => c.Xuhao);
}
@if (dataList1.Count() > 0)
{
    <ul>
        @foreach (var item in dataList1)
        {
            int id = item.Id;
            <li data-id="@id">
                <a href="@Html.ColumnUrl(id)" target="@item.Target">@item.Name</a>
                @{
                    ViewDataDictionary menuDictionary = new ViewDataDictionary();
                    menuDictionary.Add("parentId", item.Id);
                    menuDictionary.Add("level", level + 1);
                }
                @Html.Partial("MenuListModel", dataList, menuDictionary)
            </li>
        }
    </ul>
}

