public static string CssPath(this UrlHelper urlHelper, string relativePath, ViewModels.OxiteModel model) { if (!string.IsNullOrEmpty(relativePath) && !relativePath.StartsWith("/")) { relativePath = "/" + relativePath; } return(string.Format(urlHelper.AppPath(model.Site.CssPath), model.SkinName) + relativePath); }
public static string ScriptPath(this UrlHelper urlHelper, ViewModels.OxiteModel model) { return(ScriptPath(urlHelper, "", model)); }