public async void UpdateClicked(object sender, EventArgs e) { InventoryClient inventoryClient = new InventoryClient(); Inventory inventory = (Inventory)BindingContext; await inventoryClient.PutItemAsync(inventory.Id, inventory); await Navigation.PopAsync(); }