コード例 #1
0
        public void AddPropertyEditor(IPropertyEditor propertyEditor, Publication publication = null)
        {
            var contentReport = _reflectionContentManager.GetNewOrUpdatedContent(propertyEditor as PropertyEditor);

            if (publication != null)
                contentReport.Item.CreateTranslationVersions(publication);

            _reflectionContentManager.Store(contentReport.Item);
        }
コード例 #2
0
        public void AddRoute(IRoute route, Publication publication = null)
        {
            var contentReport = _reflectionContentManager.GetNewOrUpdatedContent(route as Route);

            if (publication != null)
            {
                contentReport.Item.CreateTranslationVersions(publication);
            }

            _reflectionContentManager.Store(contentReport.Item);
        }