/// <summary>
 /// Grant a user a roll on the account
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// Account Id
 /// </param>
 /// <param name='dto'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <object> PostUserAsyncByiddtoAsync(this IAccounts operations, int id, WriteUserRoleDto dto, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.PostUserAsyncByiddtoWithHttpMessagesAsync(id, dto, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Grant a user a roll on the account
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// Account Id
 /// </param>
 /// <param name='dto'>
 /// </param>
 public static object PostUserAsyncByiddto(this IAccounts operations, int id, WriteUserRoleDto dto)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IAccounts)s).PostUserAsyncByiddtoAsync(id, dto), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }