Пример #1
0
 public RsvpViewModel(Rsvp rsvp)
 {
     this.Id               = rsvp.Id;
     this.Primary          = new GuestViewModel(rsvp.Primary);
     this.PlusOne          = new GuestViewModel(rsvp.PlusOne);
     this.IsAllowedPlusOne = rsvp.IsAllowedPlusOne;
     this.IsGuestPrefilled = rsvp.IsGuestPrefilled;
     this.Message          = rsvp.Message;
 }
Пример #2
0
 public RsvpJsonModel(Rsvp rsvp)
     : this(new RsvpViewModel(rsvp))
 {
 }