private void AddAuditAnnotationMultiple() { /* SNIPPET 6: START */ var requests = new List <BatchRequestParam>(); BatchRequestParam request1 = new BatchRequestParam { ObjectId = new Guid("f179a59c-ce36-47e1-afa6-f873b80259ed"), Resource = "THIS IS THE FIRST AUDIT ANNOTATION" }; requests.Add(request1); BatchRequestParam request2 = new BatchRequestParam { ObjectId = new Guid("bccc567c-300b-4d38-894c-104cdd6e2836"), Resource = "THIS IS THE SECOND AUDIT ANNOTATION" }; requests.Add(request2); IEnumerable <Result> results = client.Audits.AddAnnotationMultiple(requests); Result resultItem = results.ElementAt(0); Console.WriteLine(resultItem); /* * { * "Id": "e0fb025a-d8a2-4258-91ea-c4026c1620d1", * "Status": 201, * "Annotation": "THIS IS THE FIRST AUDIT ANNOTATION" * } /* */ /* SNIPPET 6: END */ }
private void DiscardAuditMultiple() { /* SNIPPET 7: START */ var requests = new List <BatchRequestParam>(); BatchRequestParam request1 = new BatchRequestParam { ObjectId = new Guid("030d3998-3145-44d9-b378-886e52d373c1"), Resource = "THIS IS THE FIRST DISCARD ANNOTATION" }; requests.Add(request1); BatchRequestParam request2 = new BatchRequestParam { ObjectId = new Guid("181a6677-ccbd-4b97-9438-5b331ffd38c2"), Resource = "THIS IS THE SECOND DISCARD ANNOTATION" }; requests.Add(request2); IEnumerable <Result> results = client.Audits.DiscardMultiple(requests); Result resultItem = results.ElementAt(0); Console.WriteLine(resultItem); /* * { * "Id": "e0fb025a-d8a2-4258-91ea-c4026c1620d1", * "Status": 204, * "Annotation": "THIS IS THE FIRST DISCARD ANNOTATION" * } */ /* SNIPPET 7: END */ }