コード例 #1
0
 public Task <JsonResult> Post(AddDocumentAssetCommand command, IFormFile file)
 {
     if (file != null)
     {
         command.File = new FormFileSource(file);
     }
     return(_apiResponseHelper.RunCommandAsync(command));
 }
コード例 #2
0
 public async Task <IActionResult> Post(AddDocumentAssetCommand command, IFormFile file)
 {
     command.File = _formFileUploadedFileFactory.Create(file);
     return(await _apiResponseHelper.RunCommandAsync(this, command));
 }
        public async Task <int> AddAsync(AddDocumentAssetCommand command)
        {
            await ExtendableContentRepository.ExecuteCommandAsync(command);

            return(command.OutputDocumentAssetId);
        }
コード例 #4
0
 public Task AddAsync(AddDocumentAssetCommand command)
 {
     return(ExtendableContentRepository.ExecuteCommandAsync(command));
 }
コード例 #5
0
 public async Task <IHttpActionResult> Post(AddDocumentAssetCommand command)
 {
     return(await _apiResponseHelper.RunCommandAsync(this, command));
 }