Пример #1
0
        public void Cancel()
        {
            IsCanceled = true;

            var notification = Notification.GigCancelled(this);

            foreach (var attendee in Attendences.Select(b => b.Attendee))
            {
                attendee.Notify(notification);
            }
        }
Пример #2
0
        public void Cancel()
        {
            IsCancelled = true;

            Notification notification = Notification.GigCancelled(this);

            foreach (ApplicationUser attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
        }