Ejemplo n.º 1
0
        public static bool FeatureSwitch(this HtmlHelper helper, string featureName)
        {
            var featureManager = new FeatureManager();

            return featureManager.GetSwitchSetting<bool>(featureName);
        }
Ejemplo n.º 2
0
 //
 // GET: /Account/Register
 public ActionResult Register()
 {
     var featureManager = new FeatureManager();
     if (featureManager.GetSwitchSetting<bool>("EnableNewRegistrationSystem"))
     {
         return View();
     }
     return View("OldRegistrationPage");
 }