Esempio n. 1
0
        public static void EmailNotifications()
        {
            ProcessNotifications.ProcessEmails(_dbService, EmailPreferences.NotificationTypes.Daily);

            // send weekly summaries
            if (DateTime.Now.DayOfWeek == DayOfWeek.Friday)
            {
                ProcessNotifications.ProcessEmails(_dbService, EmailPreferences.NotificationTypes.Weekly);
            }
        }
Esempio n. 2
0
 public static void EmailNotifications()
 {
     ProcessNotifications.ProcessEmails(_dbService, EmailPreferences.NotificationTypes.PerEvent);
 }