public void Cancel() { IsCanceled = true; foreach (var attendee in Attendances.Select(a => a.Attendee)) { attendee.Notify(Notification.GigCanceled(this)); } }
public void Cancel() { this.IsCanceled = true; var notification = Notification.GigCanceled(this); foreach (var attendee in this.Attendances.Select(a => a.Attendee)) { attendee.Notify(notification); } }
public void Cencel() { IsCanceled = true; var aNotification = Notification.GigCanceled(this); foreach (var attendee in Attendences.Select(x => x.Attendee)) { attendee.Notify(aNotification); } }
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; var notification = Notification.GigCanceled(this); foreach (var user in Attendances.Select(a => a.Attendee)) { user.Notify(notification); } }
public void Cancel() { IsCanceled = true; Notification notification = Notification.GigCanceled(this); foreach (ApplicationUser attendee in Attendances.Select(a => a.Attendee)) { attendee.Notify(notification); } }
internal void Cancel() { IsCanceled = true; var notification = Notification.GigCanceled(this); foreach (var attendee in Attendances.Select(a => a.Attendee)) { attendee.Notify(notification); } ; }
public void Cancel() { IsCancel = true; var notification = Notification.GigCanceled(this); Attendances.Select(a => a.Attendee).ForEach(a => a.Notify(notification)); //foreach (var attendee in Attendances.Select(a => a.Attendee)) //{ // attendee.Notify(notification); //} }
public void Cancel() { IsCanceled = true; // create a new notification for the gig and notify each attendee // if the gig is cancelled var notification = Notification.GigCanceled(this); foreach (var attendee in Attendances.Select(a => a.Attendee)) { attendee.Notify(notification); } }
public void Cancel() { this.IsCanceled = true; //LD we refer to this specific object //LD here he just create the object "Notification" var notification = Notification.GigCanceled(this); foreach (var attendee in Attendances.Select(a => a.Attendee)) { //LD for each "User" I create an "UserNotification" instance // it will be saved in a second moment in the controller // so in the CONTROLLER I save the record od the "Gig"+"UserNotification". attendee.Notify(notification); } }
public void Cancel() { this.IsCanceled = true; // this. is greyed out since we don't need it. var notification = Notification.GigCanceled(this); // var attendes = _context.Attendances.Where(a => a.GigId == gig.ID).Select(a => a.Attendee).ToList(); //we did the attendes in var gig with the .include method. foreach (var attendee in this.Attendances.Select(a => a.Attendee)) // this is greyed out coz we don't need it. { attendee.Notify(notification); } }