Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public static string ScriptPath(this UrlHelper urlHelper, ViewModels.OxiteModel model)
 {
     return(ScriptPath(urlHelper, "", model));
 }