Exemplo n.º 1
0
        private void LoadFromModel(RoomClosure model)
        {
            RoomId    = model.RoomId;
            ReasonId  = model.ReasonId;
            StartDate = model.StartDate;
            EndDate   = model.EndDate;
            Notes     = model.Notes;

            if (model.Room != null)
            {
                Room = new RoomModel(model.Room);
            }

            if (model.Reason != null)
            {
                Reason = new RoomClosureReasonModel(model.Reason);
            }
        }
Exemplo n.º 2
0
 public RoomClosureModel(RoomClosure model) : base(model)
 {
     LoadFromModel(model);
 }