public Feed GetRssFeed(string feedUrl) { var rssFeeder = new RssFeeder(feedUrl); var rssItems = rssFeeder.GetRssFeed(); var result = MapFeed(rssItems); return result; }
public Feed GetRssFeed(string feedUrl, string category) { var rssFeeder = new RssFeeder(feedUrl); var feed = rssFeeder.GetRssFeed(); var mappedFeed = MapFeed(feed); mappedFeed.Items = mappedFeed.Items.Where(i => i.Category == category).ToList(); return mappedFeed; }