This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| USE [NavMenuDB] | |
| GO | |
| SET IDENTITY_INSERT [dbo].[NavigationMenu] ON | |
| GO | |
| INSERT [dbo].[NavigationMenu] ([LinkId], [LinkLevel], [Linktype], [ParentLink], [LinkOrder], [LinkText], [HasChildren], [Class]) VALUES (1, 1, N'LINK', 0, 0, N'MENU A', 1, N'4|grid no-margin') | |
| GO | |
| INSERT [dbo].[NavigationMenu] ([LinkId], [LinkLevel], [Linktype], [ParentLink], [LinkOrder], [LinkText], [HasChildren], [Class]) VALUES (2, 1, N'LINK', 0, 1, N'MENU B', 1, N'4|inline-list') | |
| GO | |
| SET IDENTITY_INSERT [dbo].[NavigationMenu] OFF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @model CirculationMonitor.Models.IndexModels |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public ActionResult Index() | |
| { | |
| List<Models.OurMenu> OurMenus = Helpers.MenuHelper.GetMenus(); | |
| ASPNETMVCNavigationMenu.Models.MenuModel menuModel = new Models.MenuModel(); | |
| menuModel.menus = OurMenus; | |
| return View("Index",menuModel); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>@ViewBag.Title - A Nice ASP.NET MVC Navigation Menu</title> | |
| @*our added scripts section*@ | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
| <link href="~/css/metro.css" rel="stylesheet" /> | |
| <link href="https://cdnjs.cloudflare.com/ajax/libs/metro/3.0.17/css/metro-responsive.css" rel="stylesheet"> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/metro/3.0.17/js/metro.js"></script> |