/// <summary> /// Updates an account /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// The id of the account /// </param> /// <param name='dto'> /// New account value /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <object> PatchByiddtoAsync(this IAccounts operations, int id, WriteAccountDto dto, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.PatchByiddtoWithHttpMessagesAsync(id, dto, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }