Beispiel #1
0
        public bool AddShow(ShowDto show)
        {
            if (FavouritiesShowCollection.Any(x => x.Id == show.Id))
            {
                return(false);
            }

            FavouritiesShowCollection.Add(show);
            SaveShowCollectionToSettings();
            return(true);
        }
Beispiel #2
0
 public bool DeleteShow(int id)
 {
     FavouritiesShowCollection.Remove(FavouritiesShowCollection.FirstOrDefault(x => x.Id == id));
     SaveShowCollectionToSettings();
     return(true);
 }