public static string RegisterScript(this HtmlHelper html, string id, string script, List <string> dependencies) { ExtendedController clr = html.ViewContext.Controller as ExtendedController; clr.RegisterScript(id, script, dependencies); return(""); }
public static string RegisterScript(this HtmlHelper html, string script) { ExtendedController clr = html.ViewContext.Controller as ExtendedController; clr.RegisterScript(script); return(""); }