Ejemplo n.º 1
0
        public void Cancel()
        {
            IsCanceled = true;

            foreach (var attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(Notification.GigCanceled(this));
            }
        }
Ejemplo n.º 2
0
        public void Cancel()
        {
            this.IsCanceled = true;
            var notification = Notification.GigCanceled(this);

            foreach (var attendee in this.Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
        }
Ejemplo n.º 3
0
        public void Cencel()
        {
            IsCanceled = true;
            var aNotification = Notification.GigCanceled(this);

            foreach (var attendee in Attendences.Select(x => x.Attendee))
            {
                attendee.Notify(aNotification);
            }
        }
Ejemplo n.º 4
0
        public void cancel()
        {
            IsCanceled = true;
            var notification = Notification.GigCanceled(this);

            foreach (var attendee in Attendances.Select(g => g.Attendee))
            {
                attendee.Notify(notification);
            }
        }
Ejemplo n.º 5
0
        public void Cancel()
        {
            IsCanceled = true;
            var notification = Notification.GigCanceled(this);

            foreach (var user in Attendances.Select(a => a.Attendee))
            {
                user.Notify(notification);
            }
        }
Ejemplo n.º 6
0
        public void Cancel()
        {
            IsCanceled = true;

            Notification notification = Notification.GigCanceled(this);

            foreach (ApplicationUser attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
        }
Ejemplo n.º 7
0
        internal void Cancel()
        {
            IsCanceled = true;

            var notification = Notification.GigCanceled(this);

            foreach (var attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
            ;
        }
Ejemplo n.º 8
0
Archivo: Gig.cs Proyecto: 0x7E1/GigHub
        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);
            //}
        }
Ejemplo n.º 9
0
        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);
            }
        }
Ejemplo n.º 10
0
        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);
            }
        }
Ejemplo n.º 11
0
        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);
            }
        }