public static bool SendNewRegInfoToRegDesk(string to, Registration reg)
        {
            string templateHtml = ReadHtmlTemplate("Anmeldung_New_2RegDesk.html");
            var msgToSend = Engine.Razor.RunCompile(templateHtml, "anmeldungRegDeskInfoTemplateKey", null, reg);

            var emailSvc = new SmtpMailService(new ConfigurationService());
            return emailSvc.SendMail("Neue Anmeldung", msgToSend, true, to);
        }
        public static bool SendRegCompleteMailToParticipant(Registration reg)
        {
            string templateHtml = ReadHtmlTemplate("Anmeldung_FinalStep.html");
            var msgToSend = Engine.Razor.RunCompile(templateHtml, "anmeldungFinalStepTemplateKey", null, reg);

            var emailSvc = new SmtpMailService(new ConfigurationService());
            return emailSvc.SendMail("Anmeldebestätigung", msgToSend, true, reg.EmailAddress);
        }
 public int UpdateRegisteredParticipant(Registration reg)
 {
     return this.Update(reg);
 }
 public Registration RegisterParticipant(Registration reg)
 {
     var newKey = this.Insert(reg);
     return reg;
 }