Exemplo n.º 1
0
        private static string SubMenuItemLocator(AboutUsSubMenuItems menuItems)
        {
            switch (menuItems)
            {
            case AboutUsSubMenuItems.WhoWeAre:
                return("/about-us/who-we-are");

            case AboutUsSubMenuItems.WhatSetsUsApart:
                return("/about-us/what-sets-us-apart");

            case AboutUsSubMenuItems.HowWeMeasureSuccess:
                return("/about-us/how-we-measure-success");

            case AboutUsSubMenuItems.WhereWeBegan:
                return("/about-us/where-we-began");

            case AboutUsSubMenuItems.ContactUs:
                return("/about-us/contact-us");

            default:
                throw new ArgumentOutOfRangeException(nameof(menuItems), menuItems, "Value Is Invalid");
            }
        }
Exemplo n.º 2
0
        private static string SubMenuItemsValues(AboutUsSubMenuItems menuItems)
        {
            switch (menuItems)
            {
            case AboutUsSubMenuItems.WhoWeAre:
                return("Who We Are");

            case AboutUsSubMenuItems.WhatSetsUsApart:
                return("What Sets Us Apart");

            case AboutUsSubMenuItems.HowWeMeasureSuccess:
                return("How We Measure Success");

            case AboutUsSubMenuItems.WhereWeBegan:
                return("Where We Began");

            case AboutUsSubMenuItems.ContactUs:
                return("Contact Us");

            default:
                throw new ArgumentOutOfRangeException(nameof(menuItems), menuItems, "Value Is Invalid");
            }
        }