public void Update(string venue, DateTime dateTime, byte genreId) { var notification = Notification.GigUpdated(this, DateTime, Venue); Venue = venue; DateTime = dateTime; GenreId = genreId; foreach (var attendee in Attendances.Select(a => a.Attendee)) { attendee.Notify(notification); } }
internal void Modify(DateTime datetime, string venue, byte genre) { var notification = Notification.GigUpdated(this, DateTime, Venue); DateTime = datetime; Venue = venue; GenreId = genre; foreach (var attendee in Attendances.Select(a => a.Attendee)) { attendee.Notify(notification); } }
public void Update(DateTime newDt, string newVenue, byte newGenreId) { var notification = Notification.GigUpdated(this, DateTime, Venue); DateTime = newDt; Venue = newVenue; GenreId = newGenreId; foreach (var user in Attendances.Select(a => a.Attendee)) { user.Notify(notification); } }
public void Modify(string viewModelVanue, DateTime getDateTime, byte viewModelGenre) { var notification = Notification.GigUpdated(this, getDateTime, viewModelVanue); Vanue = viewModelVanue; DateTime = getDateTime; GenreId = viewModelGenre; foreach (var attendee in Attendences.Select(a => a.Attendee)) { attendee.Notify(notification); } }
public void Modify(GigFormViewModel model, Gig gig) { Notification notification = Notification.GigUpdated(this, DateTime, Venue); gig.Venue = model.Venue; gig.DateTime = model.GetDateTime(); gig.GenreId = model.Genre; foreach (ApplicationUser attendee in Attendances.Select(x => x.Attendee)) { attendee.Notify(notification); } }
public void Update(DateTime viewModelDateTime, int viewModelGenre, string viewModelVenue) { var notification = Notification.GigUpdated(this, DateTime, Venue); DateTime = viewModelDateTime; GenreId = viewModelGenre; Venue = viewModelVenue; foreach (var attendee in Attendances.Select(a => a.Attendee)) { attendee.Notify(notification); } }
public void Mofify(DateTime dateTime, string venue, int genre) { var notiffication = Notification.GigUpdated(this, dateTime, venue); Venue = venue; GenreId = genre; DateTime = dateTime; foreach (var attendee in Attendances.Select(a => a.Attendee)) { attendee.Notify(notiffication); } }
public void Modify(DateTime dateTime, byte genreId, string venue) { DateTime = dateTime; GenreId = genreId; Venue = venue; var notification = Notification.GigUpdated(this, dateTime, venue); foreach (var attendee in Attendances.Select(a => a.Attendee)) { attendee.Notify(notification); } }
public void Modify(DateTime dateAdded, string venue, int genreId) { Notification notification = Notification.GigUpdated(this, dateAdded, venue); Venue = venue; DateAdded = dateAdded; GenreId = genreId; foreach (ApplicationUser attendee in Attendances.Select(a => a.Attendee)) { attendee.Notify(notification); } }
public void Modify(DateTime dateTime, string venue, byte genre) { var notification = Notification.GigUpdated(this, DateTime, Venue); // do not write new since it is a static method not an instance. Venue = venue; DateTime = dateTime; GenreId = genre; foreach (var attendee in Attendances.Select(a => a.Attendee)) { attendee.Notify(notification); } }
public void Modify(DateTime dateTime, string venue, int genre) { var notification = Notification.GigUpdated(DateTime, Venue, this); DateTime = dateTime; Venue = venue; GenreId = genre; foreach (var attendee in Attendences.Select(b => b.Attendee)) { attendee.Notify(notification); } }
public void Modify(DateTime dateTime, string venue, byte genre) { //LD I call the static method that is in the class "Notification" that create a new "Notification" and return it var notification = Notification.GigUpdated(this, DateTime, Venue); Venue = venue; DateTime = dateTime; GenreId = genre; foreach (var attendee in Attendances.Select(a => a.Attendee)) { attendee.Notify(notification); } }
public void Modify(DateTime dateTime, string venue, byte genre) { // create a new notification for the gig and notify each attendee // if the gig is updated var notification = Notification.GigUpdated(this, DateTime, Venue); // set the venue, date and genre for the notification Venue = venue; DateTime = dateTime; GenreId = genre; foreach (var attendee in Attendances.Select(a => a.Attendee)) { attendee.Notify(notification); } }