diff --git a/DigitalLearningSolutions.Web/Services/DelegateDownloadFileService.cs b/DigitalLearningSolutions.Web/Services/DelegateDownloadFileService.cs index f0bba93403..fa8afe7b9e 100644 --- a/DigitalLearningSolutions.Web/Services/DelegateDownloadFileService.cs +++ b/DigitalLearningSolutions.Web/Services/DelegateDownloadFileService.cs @@ -35,7 +35,8 @@ public class DelegateDownloadFileService : IDelegateDownloadFileService private const string LastName = "Last name"; private const string FirstName = "First name"; private const string DelegateId = "ID"; - private const string Email = "Email"; + private const string PrimaryEmail = "PrimaryEmail"; + private const string CentreEmail = "CentreEmail"; private const string ProfessionalRegistrationNumber = "Professional Registration Number"; private const string JobGroup = "Job group"; private const string RegisteredDate = "Registered"; @@ -330,7 +331,8 @@ DataTable dataTable new DataColumn(LastName), new DataColumn(FirstName), new DataColumn(DelegateId), - new DataColumn(Email), + new DataColumn(PrimaryEmail), + new DataColumn(CentreEmail), new DataColumn(ProfessionalRegistrationNumber), new DataColumn(JobGroup), new DataColumn(RegisteredDate), @@ -369,7 +371,8 @@ CentreRegistrationPrompts registrationPrompts row[LastName] = delegateRecord.LastName; row[FirstName] = delegateRecord.FirstName; row[DelegateId] = delegateRecord.CandidateNumber; - row[Email] = delegateRecord.EmailAddress; + row[CentreEmail] = delegateRecord.Email; + row[PrimaryEmail] = delegateRecord.PrimaryEmail; row[ProfessionalRegistrationNumber] = PrnHelper.GetPrnDisplayString( delegateRecord.HasBeenPromptedForPrn, delegateRecord.ProfessionalRegistrationNumber