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); }
public GlobalInfoItemViewModel(GlobalInfoItems model) { this.Id = model.Id; this.Type = model.Type; this.Name = model.Name; this.Active = model.Active; this.DtCreated = model.DtCreated; this.CreatedBy = model.CreatedBy; this.DtModified = model.DtModified; this.ModifiedBy = model.ModifiedBy; }
public GlobalInfoItems ConvertToGlobalInfoItems() { var globalInfoItem = new GlobalInfoItems { Id = this.Id, Type = this.Type, Name = this.Name, Active = this.Active, DtCreated = this.DtCreated, CreatedBy = this.CreatedBy, DtModified = this.DtModified, ModifiedBy = this.ModifiedBy }; return(globalInfoItem); }