public Event Merge(EventModel model) { Id = model.Id; Description = model.Description; Date = model.Date; Time = model.Time; Venue = model.Venue; CreatedBy = model.CreatedBy; Longitude = model.Longitude; Latitude = model.Latitude; Zoom = model.Zoom; if (model.Invitations != null) { Invitations = from i in model.Invitations select new Invitation { PersonId = i.PersonId, EmailSent = i.EmailSent, Response = i.Response }; } return this; }
public Event(EventModel model) { Merge(model); }