Ejemplo n.º 1
0
 public static HtmlString IncludeScriptFile(this IHtmlHelper htmlHelper, Microsoft​.AspNetCore​.Http.IHttpContextAccessor hsttpContextAccessor, string fileName)
 {
     return(new HtmlString(
                "<script type=\"text/javascript\" src=\"" +
                StaticClassMethodLibrary.RootPath(hsttpContextAccessor) + "Scripts/" + StaticClassMethodLibrary.ViewsScriptFolder + fileName + "\">" +
                "</script>"
                ));
 }
Ejemplo n.º 2
0
 public static HtmlString AbsolutePath(this IHtmlHelper htmlHelper, Microsoft​.AspNetCore​.Http.IHttpContextAccessor hsttpContextAccessor, string relPath)
 {
     return(new HtmlString(StaticClassMethodLibrary.RootPath(hsttpContextAccessor) + relPath));
 }