/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='itemData'> /// </param> public static void AddListItem(this IShoppingAPI operations, Item itemData = default(Item)) { operations.AddListItemAsync(itemData).GetAwaiter().GetResult(); }
public async Task AddItem(Item item) { await _client.AddListItemAsync(item); }