Exemple #1
0
        public Task DeletePageDraftVersionAsync(int pageId, IExecutionContext executionContext = null)
        {
            var command = new DeletePageDraftVersionCommand()
            {
                PageId = pageId
            };

            return(_commandExecutor.ExecuteAsync(command, executionContext));
        }
        public Task DeleteDraftAsync(int pageId)
        {
            var command = new DeletePageDraftVersionCommand()
            {
                PageId = pageId
            };

            return(ExtendableContentRepository.ExecuteCommandAsync(command));
        }