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); }
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); }