public void SavePost(RssPost post)
        {
            using (var ctx = new RssContext())
            {
                AddOrUpdate(post, ctx);

                ctx.SaveChanges();
            }
        }
Beispiel #2
0
 private bool PostMatches(RssPost post, List <RssFeedMatchCriterion> matchCriteria)
 {
     return(matchCriteria.Any(c => PostMatches(post, c)));
 }
Beispiel #3
0
 private bool PostMatches(RssPost post, RssFeedMatchCriterion matchCriterion)
 {
     return(FieldMatches(post.Content, matchCriterion) || FieldMatches(post.Title, matchCriterion) ||
            FieldMatches(post.Description, matchCriterion));
 }