Пример #1
0
        public async Task <IActionResult> Delete(int documentAssetId)
        {
            var command = new DeleteDocumentAssetCommand();

            command.DocumentAssetId = documentAssetId;

            return(await _apiResponseHelper.RunCommandAsync(this, command));
        }
Пример #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));
        }