Example #1
0
        public async Task <bool> DeleteAttachmentAsync(string country, string recordKey, string fileId)
        {
            s_helper.Check <StorageClientException>(string.IsNullOrEmpty(recordKey),
                                                    Messages.Storage.s_errNullRecordKey);

            s_helper.Check <StorageClientException>(string.IsNullOrEmpty(fileId),
                                                    Messages.Storage.s_errNullFileId);

            return(await _dao.DeleteAttachmentAsync(country?.ToLowerInvariant(),
                                                    _hashUtils.GetSha256Hash(recordKey), fileId).ConfigureAwait(false));
        }