/// <summary> /// /// This updates an existing enterprise person contact in 360° based /// on EnterpriseNumber, 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='updateEnterpriseArgs'> /// (See model for parameter info) /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <UpdateEnterpriseOKResponse> UpdateEnterpriseAsync(this IContactService operations, UpdateEnterpriseArgs updateEnterpriseArgs = default(UpdateEnterpriseArgs), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateEnterpriseWithHttpMessagesAsync(updateEnterpriseArgs, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// /// This updates an existing enterprise person contact in 360° based /// on EnterpriseNumber, 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='updateEnterpriseArgs'> /// (See model for parameter info) /// </param> public static UpdateEnterpriseOKResponse UpdateEnterprise(this IContactService operations, UpdateEnterpriseArgs updateEnterpriseArgs = default(UpdateEnterpriseArgs)) { return(Task.Factory.StartNew(s => ((IContactService)s).UpdateEnterpriseAsync(updateEnterpriseArgs), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }