/// <summary>
 /// Loads the notification template.
 /// </summary>
 /// <param name="templateName">Name of the template.</param>
 /// <param name="emailFormat"></param>
 /// <returns></returns>
 public static string LoadEmailNotificationTemplate(string templateName, EmailFormatType emailFormat)
 {
     var templateKey = (emailFormat == EmailFormatType.Text) ? "" : "HTML";
     var template = LoadNotificationTemplate(string.Concat(templateName, templateKey));
     
     //load template path from host settings
     var path = HostSettingManager.TemplatePath;
     return XmlXslTransform.LoadEmailXslTemplate(template, path);
 }
        /// <summary>
        /// Loads the notification template.
        /// </summary>
        /// <param name="templateName">Name of the template.</param>
        /// <param name="emailFormat"></param>
        /// <returns></returns>
        public static string LoadEmailNotificationTemplate(string templateName, EmailFormatType emailFormat)
        {
            var templateKey = (emailFormat == EmailFormatType.Text) ? "" : "HTML";
            var template    = LoadNotificationTemplate(string.Concat(templateName, templateKey));

            //load template path from host settings
            var path = HostSettingManager.TemplatePath;

            return(XmlXslTransform.LoadEmailXslTemplate(template, path));
        }