Ejemplo n.º 1
0
        public static string JsCssFile(this UrlHelper helper, string path)
        {
            var jsAndCssFileEdition = ConfigureHelper.GetAppSetting("JsAndCssFileEdition");

            if (string.IsNullOrEmpty(jsAndCssFileEdition))
            {
                jsAndCssFileEdition = Guid.NewGuid().ToString();
            }

            path += string.Format("?v={0}", jsAndCssFileEdition);

            return(helper.StaticFile(path));
        }