private void LoadFromModel(DiaryEventTemplate model) { EventTypeId = model.EventTypeId; Minutes = model.Minutes; Hours = model.Hours; Days = model.Days; if (model.DiaryEventType != null) { DiaryEventType = new DiaryEventTypeModel(model.DiaryEventType); } }
public DiaryEventTemplateModel(DiaryEventTemplate model) : base(model) { LoadFromModel(model); }