Пример #1
0
        public static void DeletePage(Guid pageId)
        {
            // TODO: Only remove per language
            var pageIds = PageData.DeletePage(pageId);

            foreach (var pageIndex in _pageLanguageIndex)
            {
                pageIndex.DeletePages(pageIds);
                SearchManager.Instance.RemoveFromIndex(pageIds, pageIndex.LanguageId);
            }

            RaisePageDeleted(pageId, 0, 0);
        }