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