Example #1
0
        public static void CreateByAll(int siteId)
        {
            CreateTaskManager.ClearAllTask(siteId);

            var channelIdList = ChannelManager.GetChannelIdList(siteId);

            foreach (var channelId in channelIdList)
            {
                CreateChannel(siteId, channelId);
            }

            foreach (var channelId in channelIdList)
            {
                CreateAllContent(siteId, channelId);
            }

            foreach (var specialId in SpecialManager.GetAllSpecialIdList(siteId))
            {
                CreateSpecial(siteId, specialId);
            }

            foreach (var fileTemplateId in TemplateManager.GetAllFileTemplateIdList(siteId))
            {
                CreateFile(siteId, fileTemplateId);
            }
        }