/// <summary> /// Create the role. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// The role. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <RoleDto> CreateRoleAsync(this IRole operations, RoleCreateDto body = default(RoleCreateDto), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateRoleWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }