コード例 #1
0
        public Task <JsonResult> Put(int documentAssetId, UpdateDocumentAssetCommand command, IFormFile file)
        {
            if (file != null)
            {
                command.File = new FormFileSource(file);
            }

            return(_apiResponseHelper.RunCommandAsync(command));
        }
コード例 #2
0
        public async Task <IActionResult> Put(int documentAssetId, UpdateDocumentAssetCommand command, IFormFile file)
        {
            command.File = _formFileUploadedFileFactory.Create(file);

            return(await _apiResponseHelper.RunCommandAsync(this, command));
        }
 public Task UpdateAsync(UpdateDocumentAssetCommand command)
 {
     return(ExtendableContentRepository.ExecuteCommandAsync(command));
 }