Exemplo n.º 1
0
        /// <summary>
        /// Get root category
        /// </summary>
        internal static Category GetRootCategory(int publicationId)
        {
            Category rootCategory;

            rootCategoryMap.TryGetValue(publicationId, out rootCategory);
            if (rootCategory == null)
            {
                //lock ( EclProvider.EcommerceEclNs ) LOCK IS NOT NEEDED HERE, RIGHT?
                //{
                rootCategory = ProductCatalog.GetAllCategories(publicationId);
                rootCategoryMap.Add(publicationId, rootCategory);
                //}
            }
            return(rootCategory);
        }