Пример #1
0
        public bool DeleteShow(int id)
        {
            if (!ShowsId.Any(s => s == id))
            {
                return(false);
            }
            Show show = Shows.First(s => s.Id == id);

            ShowsId.Remove(id);
            Shows.Remove(show);
            SaveData();
            ChangedShow?.Invoke();
            return(true);
        }