/// <summary> /// Get Citizen in Momentum by CPR /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cprNumber'> /// The CPR number to search the record in the Core system /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetCitizenByCprAsync(this IInternalClient operations, string cprNumber, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetCitizenByCprWithHttpMessagesAsync(cprNumber, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }