Example #1
0
File: Gig.cs Project: sakrsamir/Gig
        public void Cancel()
        {
            IsCanceled = true;
            var notification = Notification.GigCanceled(this);

            foreach (var attendee in Attendances.Select(g => g.Attendee))
            {
                attendee.Notify(notification);
            }
        }
Example #2
0
        public void Cancel()
        {
            IsCanceled = true;

            //create a notification when a gig is canceled
            var notification = Notification.GigCanceled(this);


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