public async Task <int> AddAsync(AddDocumentAssetCommand command)
        {
            await ExtendableContentRepository.ExecuteCommandAsync(command);

            return(command.OutputDocumentAssetId);
        }
Пример #2
0
        public async Task <int> AddDocumentAssetAsync(AddDocumentAssetCommand command, IExecutionContext executionContext = null)
        {
            await _commandExecutor.ExecuteAsync(command, executionContext);

            return(command.OutputDocumentAssetId);
        }
 public Task AddAsync(AddDocumentAssetCommand command)
 {
     return(ExtendableContentRepository.ExecuteCommandAsync(command));
 }