Exemple #1
0
 /// <summary>
 ///
 /// This updates an existing private person contact in 360° based on
 /// PersonalIdNumber, ExternalID or Recno.
 /// If the supplied id does not exist in 360°, then you will receive
 /// an error message.
 /// If the supplied id exists in 360°, the contact is updated with the
 /// provided data in the parameters.
 ///
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='updatePrivatePersonArgs'>
 /// (See model for parameter info)
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <UpdatePrivatePersonOKResponse> UpdatePrivatePersonAsync(this IContactService operations, UpdatePrivatePersonArgs updatePrivatePersonArgs = default(UpdatePrivatePersonArgs), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdatePrivatePersonWithHttpMessagesAsync(updatePrivatePersonArgs, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <summary>
 ///
 /// This updates an existing private person contact in 360° based on
 /// PersonalIdNumber, ExternalID or Recno.
 /// If the supplied id does not exist in 360°, then you will receive
 /// an error message.
 /// If the supplied id exists in 360°, the contact is updated with the
 /// provided data in the parameters.
 ///
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='updatePrivatePersonArgs'>
 /// (See model for parameter info)
 /// </param>
 public static UpdatePrivatePersonOKResponse UpdatePrivatePerson(this IContactService operations, UpdatePrivatePersonArgs updatePrivatePersonArgs = default(UpdatePrivatePersonArgs))
 {
     return(Task.Factory.StartNew(s => ((IContactService)s).UpdatePrivatePersonAsync(updatePrivatePersonArgs), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }