private string LoadTemplate(string templateName, string language) { var baseFolderPath = applicationSettingService.GetEmailTemplateFolderPath(); var filePath = string.Format(@"{0}\{1}.{2}.html", baseFolderPath, templateName, language); bool exist = System.IO.File.Exists(filePath); if (exist) { return(System.IO.File.ReadAllText(filePath)); } filePath = string.Format(@"{0}\{1}.html", baseFolderPath, templateName); return(System.IO.File.ReadAllText(filePath)); }