Esempio n. 1
0
 /// <summary>
 ///
 /// This updates an existing contact person contact in 360° based on
 /// 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='updateContactPersonArgs'>
 /// (See model for parameter info)
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <UpdateContactPersonOKResponse> UpdateContactPersonAsync(this IContactService operations, UpdateContactPersonArgs updateContactPersonArgs = default(UpdateContactPersonArgs), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateContactPersonWithHttpMessagesAsync(updateContactPersonArgs, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 ///
 /// This updates an existing contact person contact in 360° based on
 /// 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='updateContactPersonArgs'>
 /// (See model for parameter info)
 /// </param>
 public static UpdateContactPersonOKResponse UpdateContactPerson(this IContactService operations, UpdateContactPersonArgs updateContactPersonArgs = default(UpdateContactPersonArgs))
 {
     return(Task.Factory.StartNew(s => ((IContactService)s).UpdateContactPersonAsync(updateContactPersonArgs), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }