예제 #1
0
        private FrameworkAim FrameworkAimFromEntity(LARSFramework larsFramework, string learnAimRef)
        {
            if (larsFramework.LARSFrameworkAim == null)
            {
                return(null);
            }

            return(new FrameworkAim
            {
                FworkCode = larsFramework.FworkCode,
                ProgType = larsFramework.ProgType,
                PwayCode = larsFramework.PwayCode,
                LearnAimRef = learnAimRef,
                FrameworkComponentType = larsFramework.LARSFrameworkAim.FrameworkComponentType,
                EffectiveFrom = larsFramework.LARSFrameworkAim.EffectiveFrom,
                EffectiveTo = larsFramework.LARSFrameworkAim.EffectiveTo
            });
        }
예제 #2
0
        private Data.External.LARS.Model.LARSFramework LARSFrameworkFromEntity(LARSFramework entity)
        {
            if (entity == null)
            {
                return(null);
            }

            return(new Data.External.LARS.Model.LARSFramework
            {
                FworkCode = entity.FworkCode,
                ProgType = entity.ProgType,
                PwayCode = entity.PwayCode,
                EffectiveFromNullable = entity.EffectiveFromNullable,
                EffectiveTo = entity.EffectiveTo,
                LARSFrameworkAim = LARSFrameworkAimFromEntity(entity.LARSFrameworkAim),
                LARSFrameworkApprenticeshipFundings = entity.LARSFrameworkApprenticeshipFundings?.Select(LARSFrameworkApprenticeshipFundingFromEntity).ToList(),
                LARSFrameworkCommonComponents = entity.LARSFrameworkCommonComponents?.Select(LARSFrameworkCommonComponentFromEntity).ToList(),
            });
        }
예제 #3
0
 public LARSFrameworkKey(string learnAimRef, LARSFramework larsFramework)
 {
     LearnAimRef   = learnAimRef;
     LARSFramework = larsFramework;
 }