/** * Add a ticket price audit record. */ private static async void AddCountryAudit(AmazonDynamoDBClient dbClient, string loggedInUserId, CountryAuditRecord.AuditChangeType changeType, Country country) { Debug.Tested(); Debug.AssertValid(dbClient); Debug.AssertID(loggedInUserId); Debug.AssertValid(country); Dictionary <string, AttributeValue> item = new Dictionary <string, AttributeValue>(); string id = RandomHelper.Next(); item.Add(FIELD_COUNTRY_AUDIT_ID, new AttributeValue(id)); item.Add(FIELD_COUNTRY_AUDIT_TIMESTAMP, new AttributeValue(APIHelper.APITimestampStringFromDateTime(DateTime.Now))); item.Add(FIELD_COUNTRY_AUDIT_ADMINISTRATOR_ID, new AttributeValue(loggedInUserId)); item.Add(FIELD_COUNTRY_AUDIT_CHANGE_TYPE, new AttributeValue { N = changeType.ToString() }); item.Add(FIELD_COUNTRY_AUDIT_CODE, new AttributeValue(country.Code)); item.Add(FIELD_COUNTRY_AUDIT_NAME, new AttributeValue(country.Name)); item.Add(FIELD_COUNTRY_AUDIT_CURRENCIES, new AttributeValue(country.Currencies)); item.Add(FIELD_COUNTRY_AUDIT_AVAILABLE, new AttributeValue { BOOL = country.Available }); PutItemResponse response = await dbClient.PutItemAsync(DATASET_COUNTRY_AUDIT, item); Debug.AssertValid(response); //??++CHECK RESPONSE? }