コード例 #1
0
 /// <summary>
 /// Render the menu to the current ViewContext
 /// </summary>
 /// <param name="helper"></param>
 /// <param name="menu">The menu to render</param>
 public static void Menu(this HtmlHelper helper, MenuItem menu)
 {
     menu.RenderHtml(helper.ViewContext, helper.ViewContext.HttpContext.Response.Output);
 }
コード例 #2
0
 /// <summary>
 /// Render the menu to the current ViewContext
 /// </summary>
 /// <param name="helper"></param>
 /// <param name="menu">The menu to render</param>
 public static void Menu(this HtmlHelper helper, MenuItem menu)
 {
     menu.RenderHtml(helper.ViewContext, helper.ViewContext.Writer);
 }