예제 #1
0
파일: Gig.cs 프로젝트: sakrsamir/Gig
        public void Cancel()
        {
            IsCanceled = true;
            var notification = Notification.GigCanceled(this);

            foreach (var attendee in Attendances.Select(g => g.Attendee))
            {
                attendee.Notify(notification);
            }
        }
예제 #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);
            }
        }