ABsoluteMaybe.SampleWebsite.MVC2.Controllers.HomeController.Index C# (CSharp) Method

Index() public method

public Index ( ) : System.Web.Mvc.ViewResult
return System.Web.Mvc.ViewResult
        public ViewResult Index()
        {
            var msg =
                "Welcome to the ABsoluteMaybe Sample Website! Some people see this in proper case, some see it in all caps.";
            if (ABsoluteMaybe.Test("Homepage_Message_Casing",
                                   "Purchased Bumper Sticker",
                                   new[] {"ProperCase", "ALL_CAPS"}) == "ALL_CAPS")
                msg = msg.ToUpperInvariant();

            ViewData["Message"] = msg;

            return View();
        }