Ejemplo n.º 1
0
        private SiteMapNode CreateSiteMapNodeCategory(Category category)
        {
            string url = String.Empty;

            if (UrlManager.IsFacebook())
            {
                url = UrlManager.GetFacebookCategoryUrl(category.CategoryID, category.UrlName);
            }
            else
            {
                url = UrlManager.GetCategoryUrl(category.CategoryID, category.UrlName);
            }

            SiteMapNode node = new SiteMapNode(this,
                                               CreateUniqueCategoryID(category.CategoryID), url, category.Name, category.Description, null, null, null, null);

            return(node);
        }