public static IsThemeRazor ( string themeName ) : bool | ||
themeName | string | |
return | bool |
public static bool IsThemeRazor(string themeName)
{
string path = HostingEnvironment.MapPath(string.Format("~/themes/{0}/site.cshtml", themeName));
return File.Exists(path);
}