public async Task <int> AddAsync(AddDocumentAssetCommand command) { await ExtendableContentRepository.ExecuteCommandAsync(command); return(command.OutputDocumentAssetId); }
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)); }