예제 #1
0
 private void LogNewsletterDispatch(string subject, IEnumerable<string> subscribers, string parameters)
 {
     var log = new NewsletterLog() {
         Subject = subject,
         DateSent = DateTime.Now,
         NewsletterType = GetType().Name,
         Recipients = subscribers,
         Parameters = parameters
     };
     DataContext.Current.NewsletterLogs.Add(log);
 }
예제 #2
0
        private void LogNewsletterDispatch(string subject, IEnumerable <string> subscribers, string parameters)
        {
            var log = new NewsletterLog()
            {
                Subject        = subject,
                DateSent       = DateTime.Now,
                NewsletterType = GetType().Name,
                Recipients     = subscribers,
                Parameters     = parameters
            };

            DataContext.Current.NewsletterLogs.Add(log);
        }