public static bool EcommerceEnabled(this IHtmlHelper htmlHelper) { var viewOptions = ViewOptions.Lookup(htmlHelper.ViewContext.HttpContext); return(viewOptions != null && viewOptions.EcommerceEnabled); }
public static bool PublicRegistrationEnabled(this IHtmlHelper htmlHelper) { var viewOptions = ViewOptions.Lookup(htmlHelper.ViewContext.HttpContext); return(viewOptions != null && viewOptions.PublicRegistrationEnabled); }