private void SendMailForInactiveEnrolment(IEnrolment enrolment) { try { PropertyBag.Add("enrolment", enrolment); MailMessage message = RenderMailMessage("inactiveenrolment", null, PropertyBag); message.Subject = ConfigurationManager.AppSettings["RefundingSubject"]; message.To.Add(new MailAddress(ConfigurationManager.AppSettings["RefundingAddress"])); message.From = new MailAddress(ConfigurationManager.AppSettings["ConfirmationFromAddress"]); DeliverEmail(message); } catch (Exception e) { } }
public ManageEnrolmentController(IEnrolment enrolment, ICoordinator coordinator) { _enrolment = enrolment; _coordinator = coordinator; }
private string GetMollieDescription(IEnrolment enrolment) { return string.Format("{0}/onbekend/{1}", enrolment.StudentNumber, enrolment.Name); }