Esempio n. 1
0
        private string GetEmailBody(PasswordResetLink passwordResetLink)
        {
            string emailBody =
                RazorEngineWrapper.RunCompile("Views/User", "PasswordResetEmailBodyTemplate.cshtml", passwordResetLink);

            return(emailBody);
        }
Esempio n. 2
0
        private string GetEmailBody(DatabaseAlert alert, DatabasePerSecondStat earliestStatThatTriggersAlert, DatabaseUser user)
        {
            AlertTriggeredEmailInformation alertEmailInfo =
                GetAlertTriggeredInformation(alert, earliestStatThatTriggersAlert, user);
            string emailBody =
                RazorEngineWrapper.RunCompile("Views/Alert", "AlertTriggeredEmailBodyTemplate.cshtml", alertEmailInfo);

            return(emailBody);
        }