public static Notifications GetEmail(string notificationType, UserInfo user, Dictionary <string, string> dictionary, string body) { var template = NotificationTemplates.GetBy("Title", notificationType); if (string.IsNullOrEmpty(body)) { body = Replace(template.Body, dictionary); } return(GetEmail(template, user, dictionary, body)); }
public static Notifications GetEmail(string notificationType, UserInfo user, Dictionary <string, string> dictionary) { var template = NotificationTemplates.GetBy("Title", notificationType); return(GetEmail(template, user, dictionary)); }
public static string GetEmailText(string notificationType, Dictionary <string, string> dictionary) { var template = NotificationTemplates.GetBy("Title", notificationType); return(Replace(template.Body, dictionary)); }