Пример #1
0
 /// <summary>
 /// Create new shopping list item with request type POST
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='shopperName'>
 /// Shopper name
 /// </param>
 /// <param name='title'>
 /// Shopping list item title
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <object> PostShoppingListItemAsync(this IShoppingListAPI operations, string shopperName, ShoppingListTitleDto title = default(ShoppingListTitleDto), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PostShoppingListItemWithHttpMessagesAsync(shopperName, title, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #2
0
 /// <summary>
 /// Create new shopping list item with request type POST
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='shopperName'>
 /// Shopper name
 /// </param>
 /// <param name='title'>
 /// Shopping list item title
 /// </param>
 public static object PostShoppingListItem(this IShoppingListAPI operations, string shopperName, ShoppingListTitleDto title = default(ShoppingListTitleDto))
 {
     return(operations.PostShoppingListItemAsync(shopperName, title).GetAwaiter().GetResult());
 }