/// <summary> /// Create new Account, WriteAccount permission required /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='newAccount'> /// The entity to create /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <object> PostAsyncBynewAccountAsync(this IAccounts operations, WriteAccountDto newAccount, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.PostAsyncBynewAccountWithHttpMessagesAsync(newAccount, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }