public bool AddShow(ShowDto show) { if (FavouritiesShowCollection.Any(x => x.Id == show.Id)) { return(false); } FavouritiesShowCollection.Add(show); SaveShowCollectionToSettings(); return(true); }
public bool DeleteShow(int id) { FavouritiesShowCollection.Remove(FavouritiesShowCollection.FirstOrDefault(x => x.Id == id)); SaveShowCollectionToSettings(); return(true); }