private async void TapClearCart_Tapped(object sender, EventArgs e) { int userID = Preferences.Get("userId", 0); string isShoppingCartCleared = await DisplayActionSheet ("Question: Would you like to cleared the cart", "Yes", "No"); if (isShoppingCartCleared.Equals("Yes")) { await ApiServices.ClearShoppingCart(userID); LvShoppingCart.ItemsSource = null; LblTotalPrice.Text = "0"; } }