Ejemplo n.º 1
0
 public bool IsSiteMatch(string newsletterType, ISiteNewsletterTypes newsletterTypes)
 {
     return
         (IsMatch(newsletterType, newsletterTypes.Breaking) ||
          IsMatch(newsletterType, newsletterTypes.Daily) ||
          IsMatch(newsletterType, newsletterTypes.Weekly));
 }
Ejemplo n.º 2
0
 public IEnumerable <INewsletterUserOptIn> Find(ISiteNewsletterTypes newsletterTypes)
 {
     return(NewsletterUserOptInsContext.OptIns.Where(noi => IsSiteMatch(noi.NewsletterType, newsletterTypes)));
 }