private void LoadFromModel(ParentEvening model) { EventId = model.EventId; Name = model.Name; BookingOpened = model.BookingOpened; BookingClosed = model.BookingClosed; if (model.Event != null) { Event = new DiaryEventModel(model.Event); } }
public ParentEveningModel(ParentEvening model) : base(model) { LoadFromModel(model); }