/// <summary> /// Create new shopper /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='shopperName'> /// Shopper name /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> CreateNewShopperAsync(this IShoppingListAPI operations, ShopperNameDto shopperName = default(ShopperNameDto), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateNewShopperWithHttpMessagesAsync(shopperName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Create new shopper /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='shopperName'> /// Shopper name /// </param> public static object CreateNewShopper(this IShoppingListAPI operations, ShopperNameDto shopperName = default(ShopperNameDto)) { return(operations.CreateNewShopperAsync(shopperName).GetAwaiter().GetResult()); }