public ActionResult Details(int year, int month, string slug) { var post = _index.GetBlogPost(year, month, slug); if (post == null) { return new HttpNotFoundResult(); } return View(new BlogPostViewModel(post, _index.GetCategories(), _index.GetArchive(), _index.GetAuthors())); }