public Task <JsonResult> Put(int documentAssetId, UpdateDocumentAssetCommand command, IFormFile file) { if (file != null) { command.File = new FormFileSource(file); } return(_apiResponseHelper.RunCommandAsync(command)); }
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)); }