public EmailSender(IParticipant participant, EmailTemplateBlock emailTemplate) { CurrentEvent = EPiServer.DataFactory.Instance.Get <EventPageBase>(participant.EventPage); CurrentParticipant = participant; Email = EmailTemplate.Load(emailTemplate, CurrentEvent, CurrentParticipant); }
public EmailSender(EventPageBase EventPageBase, EmailTemplateBlock emailTemplate) { CurrentEvent = EventPageBase; CurrentParticipant = null; Email = EmailTemplate.Load(emailTemplate, CurrentEvent, null); }