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); } }
private void LoadFromModel(Detention model) { DetentionTypeId = model.DetentionTypeId; EventId = model.EventId; SupervisorId = model.SupervisorId; if (model.Type != null) { Type = new DetentionTypeModel(model.Type); } if (model.Event != null) { Event = new DiaryEventModel(model.Event); } if (model.Supervisor != null) { Supervisor = new StaffMemberModel(model.Supervisor); } }
private void LoadFromModel(DiaryEventAttendee model) { EventId = model.EventId; PersonId = model.PersonId; ResponseId = model.ResponseId; Required = model.Required; Attended = model.Attended; CanEdit = model.CanEdit; if (model.Event != null) { Event = new DiaryEventModel(model.Event); } if (model.Person != null) { Person = new PersonModel(model.Person); } if (model.Response != null) { Response = new DiaryEventAttendeeResponseModel(model.Response); } }