Exemplo n.º 1
0
        /// <summary>
        /// Add inline script element
        /// </summary>
        /// <param name="html">HTML helper</param>
        /// <param name="location">A location of the script element</param>
        /// <param name="script">Script</param>
        public static void AddInlineScriptParts(this IHtmlHelper html, ResourceLocation location, string script)
        {
            IPageHeadBuilder pageHeadBuilder = ServiceProviderFactory.ServiceProvider.GetService <IPageHeadBuilder>();

            pageHeadBuilder.AddInlineScriptParts(location, script);
        }