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 }); }
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(), }); }
public LARSFrameworkKey(string learnAimRef, LARSFramework larsFramework) { LearnAimRef = learnAimRef; LARSFramework = larsFramework; }