public static Provider Map(ProviderDocument providerDocument) { var csvProvider = new Provider { Ukprn = providerDocument.Ukprn, Name = providerDocument.Name, ProviderType = Enumerations.GetEnumDescription(providerDocument.ProviderType), NewOrganisationWithoutFinancialTrackRecord = providerDocument.NewOrganisationWithoutFinancialTrackRecord, ParentCompanyGuarantee = providerDocument.ParentCompanyGuarantee, StartDate = FormatDate(providerDocument.StartDate) }; return(csvProvider); }
public static Provider Map(ProviderDocument providerDocument) { var csvProvider = new Provider { Ukprn = providerDocument.Ukprn, Name = providerDocument.Name, ProviderType = Enumerations.GetEnumDescription(providerDocument.ProviderType), NewOrganisationWithoutFinancialTrackRecord = providerDocument.NewOrganisationWithoutFinancialTrackRecord, ParentCompanyGuarantee = providerDocument.ParentCompanyGuarantee, StartDate = FormatDate(providerDocument.StartDate), ProviderNotCurrentlyStartingNewApprentices = providerDocument.CurrentlyNotStartingNewApprentices ? "TRUE" : string.Empty, ApplicationDeterminedDate = FormatDate(providerDocument.ApplicationDeterminedDate) }; return(csvProvider); }