Inheritance: Kooboo.Web.Mvc.Menu.MenuItem
        private MenuItem System()
        {
            var system = new CommerceMenuItem
            {
                Name = "System",
                Text = "System"
            };

            system.Items.Add(new CommerceMenuItem
            {
                Name       = "Settings",
                Text       = "Settings",
                Controller = "Setting",
                Action     = "Index"
            });
            system.Items.Add(new CommerceMenuItem
            {
                Name       = "Countries",
                Text       = "Countries",
                Controller = "Country",
                Action     = "Index"
            });
            system.Items.Add(new CommerceMenuItem
            {
                Name       = "ProductTypes",
                Text       = "Product types",
                Controller = "ProductType",
                Action     = "Index"
            });

            return(system);
        }
        private MenuItem Shop()
        {
            var shop = new CommerceMenuItem
            {
                Name = "Shop",
                Text = "Shop"
            };

            shop.Items.Add(new CommerceMenuItem
            {
                Name       = "Promotions",
                Text       = "Promotions",
                Controller = "Promotion",
                Action     = "Index"
            });
            shop.Items.Add(new CommerceMenuItem
            {
                Name       = "PaymentMethods",
                Text       = "Payment methods",
                Action     = "Index",
                Controller = "PaymentMethod"
            });
            shop.Items.Add(new CommerceMenuItem
            {
                Name       = "ShippingMethods",
                Text       = "Shipping methods",
                Controller = "ShippingMethod",
                Action     = "Index"
            });

            return(shop);
        }
示例#3
0
        private MenuItem BusinessRules()
        {
            var businessRules = new CommerceMenuItem
            {
                Name = "BusinessRules",
                Text = "Business rules"
            };

            foreach (var item in BusinessRuleMenuItems.GetMenuItems())
            {
                businessRules.Items.Add(item);
            }

            return businessRules;
        }
        private MenuItem BusinessRules()
        {
            var businessRules = new CommerceMenuItem
            {
                Name = "BusinessRules",
                Text = "Business rules"
            };

            foreach (var item in BusinessRuleMenuItems.GetMenuItems())
            {
                businessRules.Items.Add(item);
            }

            return(businessRules);
        }
示例#5
0
        private MenuItem Catalog()
        {
            var item = new CommerceMenuItem
            {
                Name = "Catalog",
                Text = "Catalog"
            };

            item.Items.Add(new CommerceMenuItem
            {
                Name = "Categories",
                Text = "Categories",
                Controller = "Category",
                Action = "Index"
            });
            item.Items.Add(new CommerceMenuItem
            {
                Name = "Brands",
                Text = "Brands",
                Controller = "Brand",
                Action = "Index"
            });
            item.Items.Add(new CommerceMenuItem
            {
                Name = "Products",
                Text = "Products",
                Controller = "Product",
                Action = "Index"
            });
            item.Items.Add(new CommerceMenuItem
            {
                Name = "MediaLibrary",
                Text = "Media Library",
                Controller = "MediaLibrary",
                Action = "Index"
            });

            return item;
        }
        private MenuItem Catalog()
        {
            var item = new CommerceMenuItem
            {
                Name = "Catalog",
                Text = "Catalog"
            };

            item.Items.Add(new CommerceMenuItem
            {
                Name       = "Categories",
                Text       = "Categories",
                Controller = "Category",
                Action     = "Index"
            });
            item.Items.Add(new CommerceMenuItem
            {
                Name       = "Brands",
                Text       = "Brands",
                Controller = "Brand",
                Action     = "Index"
            });
            item.Items.Add(new CommerceMenuItem
            {
                Name       = "Products",
                Text       = "Products",
                Controller = "Product",
                Action     = "Index"
            });
            item.Items.Add(new CommerceMenuItem
            {
                Name       = "MediaLibrary",
                Text       = "Media Library",
                Controller = "MediaLibrary",
                Action     = "Index"
            });

            return(item);
        }
示例#7
0
        private MenuItem System()
        {
            var system = new CommerceMenuItem
            {
                Name = "System",
                Text = "System"
            };

            system.Items.Add(new CommerceMenuItem
            {
                Name = "Settings",
                Text = "Settings",
                Controller = "Setting",
                Action = "Index"
            });
            system.Items.Add(new CommerceMenuItem
            {
                Name = "Countries",
                Text = "Countries",
                Controller = "Country",
                Action = "Index"
            });
            system.Items.Add(new CommerceMenuItem
            {
                Name = "ProductTypes",
                Text = "Product types",
                Controller = "ProductType",
                Action = "Index"
            });

            return system;
        }
示例#8
0
        private MenuItem Shop()
        {
            var shop = new CommerceMenuItem
            {
                Name = "Shop",
                Text = "Shop"
            };

            shop.Items.Add(new CommerceMenuItem
            {
                Name = "Promotions",
                Text = "Promotions",
                Controller = "Promotion",
                Action = "Index"
            });
            shop.Items.Add(new CommerceMenuItem
            {
                Name = "PaymentMethods",
                Text = "Payment methods",
                Action = "Index",
                Controller = "PaymentMethod"
            });
            shop.Items.Add(new CommerceMenuItem
            {
                Name = "ShippingMethods",
                Text = "Shipping methods",
                Controller = "ShippingMethod",
                Action = "Index"
            });

            return shop;
        }