/// <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>
 public static object PostAsyncBynewAccount(this IAccounts operations, WriteAccountDto newAccount)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IAccounts)s).PostAsyncBynewAccountAsync(newAccount), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <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>
 public static object PatchByiddto(this IAccounts operations, int id, WriteAccountDto dto)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IAccounts)s).PatchByiddtoAsync(id, dto), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <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);
     }
 }
 /// <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);
     }
 }