internal bool IsEmpty()
 {
     return(string.IsNullOrWhiteSpace(EmailAddress) &&
            string.IsNullOrWhiteSpace(Telephone) &&
            string.IsNullOrWhiteSpace(Url) &&
            string.IsNullOrWhiteSpace(Addr1) &&
            string.IsNullOrWhiteSpace(Addr2) &&
            string.IsNullOrWhiteSpace(Addr4) &&
            string.IsNullOrWhiteSpace(Addr3) &&
            string.IsNullOrWhiteSpace(Postcode) &&
            string.IsNullOrWhiteSpace(TrainWithUs) &&
            string.IsNullOrWhiteSpace(TrainWithDisability) &&
            !AboutTrainingProviders.Any(x => !string.IsNullOrWhiteSpace(x.Description)));
 }
        public void MergeIntoEnrichmentModel(ref ProviderEnrichmentModel enrichmentModel)
        {
            if (enrichmentModel == null)
            {
                enrichmentModel = new ProviderEnrichmentModel();
            }

            var aboutTrainingProviders = new List <AccreditingProviderEnrichment>(
                AboutTrainingProviders.Select(x => new AccreditingProviderEnrichment
            {
                UcasProviderCode = x.ProviderCode,
                Description      = x.Description
            }));

            enrichmentModel.TrainWithUs = TrainWithUs;
            enrichmentModel.AccreditingProviderEnrichments = aboutTrainingProviders;
            enrichmentModel.TrainWithDisability            = TrainWithDisability;
        }
 internal bool IsEmpty()
 {
     return(string.IsNullOrEmpty(TrainWithUs) &&
            string.IsNullOrEmpty(TrainWithDisability) &&
            !AboutTrainingProviders.Any(x => !string.IsNullOrEmpty(x.Description)));
 }