public static SpecSubLevelChoiceModel ToHydratedModel(this SpecChoice aSpecChoiceEntity) { var result = aSpecChoiceEntity.ToModel(); result.ReferenceStep = (aSpecChoiceEntity.ReferenceStep != null)? aSpecChoiceEntity.ReferenceStep.ToModel() : null; return(result); }
public static SpecSubLevelChoiceModel ToModel(this SpecChoice aSpecSubLevelChoice) { return(new SpecSubLevelChoiceModel() { Description = aSpecSubLevelChoice.Description, ChoiceSeqId = aSpecSubLevelChoice.ChoiceSeqId, SubLevelSeqId = aSpecSubLevelChoice.SubLevelSeqId, ReferenceStepId = aSpecSubLevelChoice.ReferenceStepId, DependentSubLevelId = aSpecSubLevelChoice.DependentLevel, OnlyValidForChoiceId = aSpecSubLevelChoice.OnlyValidForChoice }); }