public async Task <IActionResult> Delete(int documentAssetId)
        {
            var command = new DeleteDocumentAssetCommand();

            command.DocumentAssetId = documentAssetId;

            return(await _apiResponseHelper.RunCommandAsync(this, command));
        }
Esempio n. 2
0
        public Task <JsonResult> Delete(int documentAssetId)
        {
            var command = new DeleteDocumentAssetCommand();

            command.DocumentAssetId = documentAssetId;

            return(_apiResponseHelper.RunCommandAsync(command));
        }
        public Task DeleteAsync(int documentAssetId)
        {
            var command = new DeleteDocumentAssetCommand()
            {
                DocumentAssetId = documentAssetId
            };

            return(ExtendableContentRepository.ExecuteCommandAsync(command));
        }