BlogEngine.Core.BlogSettings.IsThemeRazor C# (CSharp) Метод

IsThemeRazor() публичный статический Метод

Determines if themeName is a razor theme.
public static IsThemeRazor ( string themeName ) : bool
themeName string
Результат bool
        public static bool IsThemeRazor(string themeName)
        {
            string path = HostingEnvironment.MapPath(string.Format("~/themes/{0}/site.cshtml", themeName));
            return File.Exists(path);
        }