private async void AddNewItem(object sender, EventArgs e) { Inventory item = (Inventory)BindingContext; InventoryClient inventoryClient = new InventoryClient(); await inventoryClient.PostItemAsync(item); await Navigation.PopAsync(); }