示例#1
0
 /// <summary>
 /// Adds a new page directory.
 /// </summary>
 /// <param name="command">Command to run.</param>
 /// <param name="executionContext">Optional execution context to use when executing the query. Useful if you need to temporarily elevate your permission level.</param>
 public Task AddPageDirectoryAsync(AddPageDirectoryCommand command, IExecutionContext executionContext = null)
 {
     return(_commandExecutor.ExecuteAsync(command, executionContext));
 }
        public async Task <int> AddAsync(AddPageDirectoryCommand command)
        {
            await ExtendableContentRepository.ExecuteCommandAsync(command);

            return(command.OutputPageDirectoryId);
        }