Esempio n. 1
0
        public async Task <EmailMessage> GenerateWelcomeMsg(RegistrationData kycOkData)
        {
            var templateVm = new BaseTemplate
            {
                Year = kycOkData.Year
            };

            return(new EmailMessage
            {
                Body = await _templateGenerator.GenerateAsync("WelcomeTemplate", templateVm, TemplateType.Email),
                Subject = EmailResources.Welcome_Subject,
                IsHtml = true
            });
        }
Esempio n. 2
0
        public async Task <string> GenerateConfirmSmsText(string confirmationCode)
        {
            var templateVm = new SmsConfirmationTemplate
            {
                ConfirmationCode = confirmationCode
            };

            return(await _templateGenerator.GenerateAsync("Sms.Templates.SmsConfirmation", templateVm));
        }