예제 #1
0
파일: Gig.cs 프로젝트: devbryan0225/GigHub
        public void Cancel()
        {
            IsCanceled = true;

            foreach (var attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(Notification.GigCanceled(this));
            }
        }
예제 #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);
            }
        }
예제 #3
0
파일: Gig.cs 프로젝트: rykamol/GigHub
        public void Cencel()
        {
            IsCanceled = true;
            var aNotification = Notification.GigCanceled(this);

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

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

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

            Notification notification = Notification.GigCanceled(this);

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

            var notification = Notification.GigCanceled(this);

            foreach (var attendee in Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
            ;
        }
예제 #8
0
파일: Gig.cs 프로젝트: 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);
            //}
        }
예제 #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);
            }
        }
예제 #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);
            }
        }
예제 #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);
            }
        }