Example #1
0
        public void Modify(GigFormViewModel gigViewModel)
        {
            var notification = Notification.GigUpdatedNotification(this, this.DateTime, this.Venue);

            this.GenreId  = gigViewModel.Genre;
            this.Venue    = gigViewModel.Venue;
            this.DateTime = gigViewModel.GetDateTime();

            foreach (var attendee in this.Attendances.Select(a => a.Attendee))
            {
                attendee.Notify(notification);
            }
        }