Exemplo n.º 1
0
        public WeighingMeasurmentGlobalInfoItems ConvertToWeighingMeasurmentGlobalInfoItems()
        {
            GlobalInfoItems globalInfoItem = null;

            if (this.GlobalInfoItem != null)
            {
                globalInfoItem = this.GlobalInfoItem.ConvertToGlobalInfoItems();
            }

            var weighingMeasurmentGlobalInfoItem = new WeighingMeasurmentGlobalInfoItems
            {
                Id = this.Id,
                RandomizedStudentId = this.RandomizedStudentId,
                GlobalInfoItemId    = this.GlobalInfoItemId,
                Value      = this.Value,
                DtCreated  = this.DtCreated,
                CreatedBy  = this.CreatedBy,
                DtModified = this.DtModified,
                ModifiedBy = this.ModifiedBy,

                GlobalInfoItem = globalInfoItem
            };

            return(weighingMeasurmentGlobalInfoItem);
        }
Exemplo n.º 2
0
        public WeighingMeasurementGlobalInfoItemViewModel(WeighingMeasurmentGlobalInfoItems model)
        {
            this.Id = model.Id;
            this.RandomizedStudentId = model.RandomizedStudentId;
            this.GlobalInfoItemId    = model.GlobalInfoItemId;
            this.Value      = model.Value;
            this.DtCreated  = model.DtCreated;
            this.CreatedBy  = model.CreatedBy;
            this.DtModified = model.DtModified;
            this.ModifiedBy = model.ModifiedBy;

            this.GlobalInfoItem = model.GlobalInfoItem == null ? null : new GlobalInfoItemViewModel(model.GlobalInfoItem);
        }