/// <summary> /// Gets the default email template. /// </summary> /// <param name="emailType">Type of the email.</param> /// <returns></returns> protected virtual Guid GetDefaultEmailTemplate(string emailType) { Guid templateId = Guid.Empty; var templates = EmailTemplateHelper.GetEmailTemplates(String.Format(@"ControlType == ""{0}"" && Condition==""{1}""", typeof(RegistrationForm).FullName, emailType)); if (templates != null && templates.Count > 0) { templateId = templates.First().Key; } return(templateId); }