public void Cancel() { IsCanceled = true; var notification = Notification.GigCanceled(this); foreach (var attendee in Attendances.Select(g => g.Attendee)) { attendee.Notify(notification); } }
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); } }