var model = new ParticipantUpdateableRequestModel()
{
IDs = new int[] { 1234567890 }
};
var results = serviceClient.GetParticipantsUpdateable(sa, model);
if (results.IsSuccessful)
{
results.UpdateableParticipants[0].EmailAddress = "test@test.com";
var updateModel = new ParticipantUpdateRequestModel()
{
Participants = results.UpdateableParticipants
};
var updateResults = serviceClient.UpdateParticipants(sa, updateModel);
if (updateResults.IsSuccessful)
{
//do work...
}
else
{
//handle error
}
}
else
{
//handle error
}
Dim model = New ParticipantUpdateableRequestModel() With {
.IDs = New Integer() {1234567890}
}
Dim results = serviceClient.GetParticipantsUpdateable(sa, model)
If Not results.IsSuccessful Then
results.UpdateableParticipants(0).EmailAddress = "test@test.com"
Dim updateModel = New ParticipantUpdateRequestModel() With {
.Participants = results.UpdateableParticipants
}
Dim updateResults = serviceClient.UpdateParticipants(sa, updateModel)
If Not updateResults.IsSuccessful Then
'do work...
Else
'handle error
End If
Else
'handle error
End If