예제 #1
0
        private string GetEmailTemplate(string templateName)
        {
            var templateContent = string.Empty;

            var emailTemplate = _emailTemplateRepository.GetBy(e => e.Name == templateName);

            if (!string.IsNullOrEmpty(emailTemplate?.Content))
            {
                templateContent = emailTemplate.Content;
            }

            return(templateContent);
        }