コード例 #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
ファイル: Gig.cs プロジェクト: sampanna99/.netGigHub
        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);
            }
        }