Пример #1
0
        public async Task <string> FormatEmailMessage <T>(string templateName, T model) where T : class
        {
            var template = await _templateProvider.GetTemplateContent(templateName);

            return(_templateParser.Format <T>(template, model));
        }