private static PostViewModel CreatePostViewModel(Post post) { post.Content = BlogUtils.FormatPostContent(post.Content); return(new PostViewModel() { Id = post.Id, Title = post.Title, Content = post.Content, PubDate = post.PubDate, Comments = post.Comments.OrderByDescending(c => c.PubDate), Slug = post.Slug }); }