public int GetContentIdBySimpleName(int siteId, string contentName) { var hash = GetContentIdHashTable(); Hashtable localHash; var siteKey = siteId.ToString(); if (!hash.ContainsKey(siteKey)) { localHash = CacheManager.AddContentIdHashEntry(siteKey); } else { localHash = (Hashtable)hash[siteKey]; } var contentKey = contentName.ToLowerInvariant(); if (localHash.ContainsKey(contentKey)) { return((int)localHash[contentKey]); } return(0); }