Beispiel #1
0
        public async Task <bool> DeleteDocumentAsync(string id, string userId)
        {
            var isDocumentExist = await _documentRepository.DeleteDocumentAsync(userId, id);

            if (!isDocumentExist)
            {
                return(false);
            }

            await _blobStorage.DeleteBlobAsync(userId, id);

            return(true);
        }