private static void PopulateDisqusThread(EntryViewModel entryViewModel, PageViewModel pageViewModel)
 {
     entryViewModel.DisqusThread = new DisqusThreadViewModel
     {
         Shortname = pageViewModel.DisqusShortname,
         Identifier = entryViewModel.Id,
         Url = entryViewModel.CanonicalUrl
     };
 }
        private void PopulateEntries(PageViewModel pageViewModel)
        {
            var entryToEntryViewModelMapper = new EntryToEntryViewModelMapper(
                this.session,
                this.urlHelper);

            var query = this.session.Query<Entry>()
                .Where(e => e.PageId == pageViewModel.Id && e.Published && !e.Deleted)
                .OrderByDescending(e => e.PublishedAtUtc);

            var entries = query.ToList();

            pageViewModel.Entries = entries
                .Select(entryToEntryViewModelMapper.Map);
        }
 private static void PopulatePageDetails(EntryViewModel entryViewModel, PageViewModel pageViewModel)
 {
     entryViewModel.PageSlug = pageViewModel.Slug;
 }