private IncentiveApplication(Guid id, IncentiveApplicationModel model, bool isNew = false) : base(id, model, isNew) { foreach (var apprenticeshipModel in model.ApprenticeshipModels.ToList()) { _apprenticeships.Add(Apprenticeship.Create(apprenticeshipModel)); } }
private static List <Apprenticeship> Map(ICollection <ApprenticeshipModel> apprenticeshipModels) { var apprenticeships = new List <Apprenticeship>(); foreach (var apprenticeshipModel in apprenticeshipModels.ToList()) { apprenticeships.Add(Apprenticeship.Create(apprenticeshipModel)); } return(apprenticeships); }