public async Task <Record> WriteAsync(string country, Record record) { s_helper.Check <StorageClientException>(record == null, Messages.Storage.s_errNullRecord); #pragma warning disable CA1062 s_helper.Check <StorageClientException>(string.IsNullOrEmpty(record.RecordKey), Messages.Storage.s_errNullRecordKey); #pragma warning restore CA1062 #pragma warning disable CA1308 await _dao .CreateRecordAsync(country?.ToLowerInvariant(), _transformer.GetTransferRecord(record)) .ConfigureAwait(false); return(record); }