Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Configuration;
- using System.Web;
- using AlertSense.Common.Extensions;
- namespace AlertSense.Hickory.AdminWebsite
- {
- public class FeatureConfigToggle
- {
- public static bool UseFancyTree
- {
- get
- {
- if (HttpContext.Current != null && HttpContext.Current.Request["UseFancy"] != null)
- {
- return HttpContext.Current.Request.Params.GetValue<bool>("UseFancy", true);
- }
- return ConfigurationManager.AppSettings.GetValue<bool>("UseFancy", false);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement