예제 #1
0
        public static SpecSubLevelChoiceModel ToHydratedModel(this SpecChoice aSpecChoiceEntity)
        {
            var result = aSpecChoiceEntity.ToModel();

            result.ReferenceStep = (aSpecChoiceEntity.ReferenceStep != null)? aSpecChoiceEntity.ReferenceStep.ToModel() : null;

            return(result);
        }
예제 #2
0
 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
     });
 }