Example #1
0
 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;
 }
Example #2
0
 public Event(EventModel model)
 {
     Merge(model);
 }
Example #3
0
 public Event(EventModel model)
 {
     Merge(model);
 }