protected virtual string GetCurrentTheme() { string theme = ""; SiteConfig config = CacheHelper.GetCache(Constant.CacheKey.SiteConfigCacheKey) as SiteConfig; if (config == null) { ISiteConfigService siteConfigService = IocHelper.AutofacResolveNamed <ISiteConfigService>("SiteConfigService"); config = siteConfigService.LoadConfig(Constant.SiteConfigPath); CacheHelper.SetCache(Constant.CacheKey.SiteConfigCacheKey, config); } theme = config.SiteTheme; //Debug.WriteLine("theme:" + theme); return(theme); }