private void UpdateViewModelWithPosts(FrontPageModel viewModel, IEnumerable<BlogPost> blogPosts)
        {
            foreach (BlogPost post in blogPosts)
            {
                string parsedDescription = TransformWaneTextToHtml(post.Description);

                var summaryViewModel = new FrontPageItemModel
                {
                    Title = post.Title,
                    Description = parsedDescription,
                    ImageUrl = post.ImageUrl,
                    PublishedDate = post.PublishedDate,
                    AuthorsName = post.Author.FullName
                };

                viewModel.Add(summaryViewModel);
            }
        }
 private static FrontPageModel CreateViewModelWithPagingInformation(int page, IBlogPostPager pager)
 {
     var viewModel = new FrontPageModel();
     viewModel.Paging.CurrentPage = page;
     viewModel.Paging.PageCount = pager.PageCount;
     return viewModel;
 }