public async Task AddToFavorites(Datum beerInformation) { FavoriteList.Add(beerInformation); await ApiManager.GetBeersAsync(beerInformation.Id); FavoriteIcon = FavoriteList.Contains(beerInformation) ? "orangeHeart.png" : "favoritesIcon.png"; }
public async Task AddToFavorites(Datum beerInformation) { FavoriteList.Add(beerInformation); await ApiManager.GetBeersAsync(beerInformation.Id); FavoriteIcon = FavoriteList.Contains(beerInformation) ? "orangeHeart.png" : "favoritesIcon.png"; }