Пример #1
0
        public ActionResult Index(FeedViewModel viewModel)
        {
            var feed = new AtomFeed(viewModel.Url)
            {
                Reader = this.Reader
            };

            feed.PopulateEntries();
            var entriesViewModel = new PopulateFeedViewModel();

            entriesViewModel.Entries.AddRange(feed.Entries.Select(entry => new FeedEntryViewModel {
                Title = entry.Title
            }).ToList());
            return(this.View(entriesViewModel));
        }