public static List<KeyValuePair<string, string>> LoadSiteDomains()
{
var sites = (List<KeyValuePair<string, string>>)HttpContext.Current.Cache[SitesKey];
if (sites == null)
{
sites = RepositoryFactory.SiteRepository.Queryable.Select(a => new KeyValuePair<string, string>(a.Id, a.Subdomain)).ToList();
HttpContext.Current.Cache[SitesKey] = sites;
}
return sites;
}