public override void InitHelpers() { base.InitHelpers(); var app = (MvcApplication)ViewContext.RequestContext.HttpContext.ApplicationInstance; Bundles = new BundleManager(app.BundleProvider, ViewContext.RequestContext); }
protected override void Initialize(RequestContext requestContext) { base.Initialize(requestContext); var bundleProvider = ((MvcApplication)requestContext.HttpContext.ApplicationInstance).BundleProvider; Bundles = new BundleManager(bundleProvider, requestContext); }