Exemple #1
0
        private CategoryClassInfo GetCategoryClassInfo(ECategoryClassType categoryType, int siteId)
        {
            var isSystem = categoryType == ECategoryClassType.Channel || categoryType == ECategoryClassType.Department;

            return(new CategoryClassInfo
            {
                Id = 0,
                SiteId = siteId,
                ClassCode = ECategoryClassTypeUtils.GetValue(categoryType),
                ClassName = ECategoryClassTypeUtils.GetText(categoryType),
                IsSystem = isSystem,
                IsEnabled = true,
                ContentAttributeName = string.Empty,
                Taxis = 0,
                Description = string.Empty,
            });
        }