Exemplo n.º 1
0
        public async Task <IActionResult> DeleteBlobAsync(string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(NotFound());
            }

            var blob = await _blobStore.GetByIdAsync(id);

            if (blob == null)
            {
                return(NotFound());
            }

            await _blobStore.RemoveAsync(id);

            await _storageService.DeleteBlobAsync(blob.ContainerId, blob.StorageSubject);

            return(Ok());
        }