public static string WebResource()

in AdventureWorksMVC/Helpers/WebResource.cs [12:17]


    public static string WebResource(this UrlHelper urlHelper, Type type, string resourcePath)
    {
        //Create page in order to use ClientScript. Razor Views do no have access to Page otherwise this could be done in the View itself. 
        var page = new Page();
        return page.ClientScript.GetWebResourceUrl(type, resourcePath);
    }