Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        public static Notifications GetEmail(string notificationType, UserInfo user, Dictionary <string, string> dictionary)
        {
            var template = NotificationTemplates.GetBy("Title", notificationType);

            return(GetEmail(template, user, dictionary));
        }
Esempio n. 3
0
        public static string GetEmailText(string notificationType, Dictionary <string, string> dictionary)
        {
            var template = NotificationTemplates.GetBy("Title", notificationType);

            return(Replace(template.Body, dictionary));
        }