Exemplo n.º 1
0
        public void Add(AdminMainMenu menu)
        {
            string name = menu.Controller.ToLower();

            AdminMenu.Add(name, menu);
        }
Exemplo n.º 2
0
        static AdminMenu()
        {
            AdminMainMenu Dashboard = new AdminMainMenu()
            {
                Controller = "Dashboard",
                Title      = "Dashboard"
            };

            Dashboard.AddChild(new AdminSubMenu()
            {
                Action = "Index",
                Title  = "Trang chủ",
                Icon   = "icon-camera-retro"
            });
            Dashboard.AddChild(new AdminSubMenu()
            {
                Action = "Statictist",
                Title  = "Thống kê"
            });
            Dashboard.AddChild(new AdminSubMenu()
            {
                Action = "Article",
                Title  = "Bài viết"
            });

            adminMenuList.Add(Dashboard);

            AdminMainMenu User = new AdminMainMenu()
            {
                Controller = "User",
                Title      = "Người dùng",
                Icon       = "user"
            };

            User.AddChild(new AdminSubMenu()
            {
                Action = "Index",
                Title  = "Danh sách",
                Icon   = "list"
            });
            adminMenuList.Add(User);

            AdminMainMenu Ticket = new AdminMainMenu()
            {
                Controller = "Ticket",
                Title      = "Vé",
                Icon       = "tags"
            };

            adminMenuList.Add(Ticket);

            AdminMainMenu Event = new AdminMainMenu()
            {
                Controller = "Event",
                Title      = "Sự kiện",
                Icon       = "tasks"
            };

            adminMenuList.Add(Event);

            AdminMainMenu Transaction = new AdminMainMenu()
            {
                Controller = "Transaction",
                Title      = "Giao dịch",
                Icon       = "shopping-cart"
            };

            adminMenuList.Add(Transaction);

            AdminMainMenu Request = new AdminMainMenu()
            {
                Controller = "Request",
                Title      = "Yêu cầu",
                Icon       = "share"
            };

            adminMenuList.Add(Request);
            // category,event,province,venue
            AdminMainMenu Venue = new AdminMainMenu()
            {
                Controller = "Venue",
                Title      = "Địa điểm",
                Icon       = "globe"
            };

            adminMenuList.Add(Venue);

            AdminMainMenu Category = new AdminMainMenu()
            {
                Controller = "Category",
                Title      = "Danh mục",
                Icon       = "bookmark"
            };

            adminMenuList.Add(Category);



            AdminMainMenu Setting = new AdminMainMenu()
            {
                Controller = "Setting",
                Title      = "Tùy chỉnh",
                Icon       = "wrench"
            };

            adminMenuList.Add(Setting);
        }