Exemplo n.º 1
0
Arquivo: Gig.cs Projeto: sakrsamir/Gig
        public void Cancel()
        {
            IsCanceled = true;
            var notification = Notification.GigCanceled(this);

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