Пример #1
0
        static private string GetTemplate(ContentTemplateType contentTemplate)
        {
            string templatesPath = ConfigurationData.GetString("Templates.Path");

            string fileName = System.IO.Path.Combine(templatesPath, $"email.template.{contentTemplate}.txt");

            return(System.IO.File.ReadAllText(fileName));
        }
Пример #2
0
        internal string Export()
        {
            var mediaTemplateUID = ConfigurationData.GetString("Export.Processes.To.Excel.MediaTemplate.UID");

            FileInfo newFile = MediaFileTemplateServices.CreateFileFromTemplate(mediaTemplateUID);

            FillOut(newFile);

            return(MediaFileTemplateServices.GetFileUrl(newFile));
        }