private async void AddShoppingList() { if (string.IsNullOrEmpty(ItemName) || string.IsNullOrEmpty(Amount.ToString())) { await App.Current.MainPage.DisplayAlert("Empty Values", "Please enter Item Name and Quantity.", "Ok"); } else { var shoppingList = await FirebaseHelper.AddShoppingList(ItemName, Amount); if (shoppingList) { await RefreshList(); } else { await App.Current.MainPage.DisplayAlert("Couldn't Add Item", "Please Try Again", "OK"); } } }