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>" )); }
public static HtmlString AbsolutePath(this IHtmlHelper htmlHelper, Microsoft.AspNetCore.Http.IHttpContextAccessor hsttpContextAccessor, string relPath) { return(new HtmlString(StaticClassMethodLibrary.RootPath(hsttpContextAccessor) + relPath)); }