//
// GET: /Posts/
public ViewResult Index()
{
return View(postRepository.AllIncluding(post => post.Comments));
}
我想修改上面的代码以按 PublishDate 列以相反的顺序显示。
//
// GET: /Posts/
public ViewResult Index()
{
return View(postRepository.AllIncluding(post => post.Comments));
}
我想修改上面的代码以按 PublishDate 列以相反的顺序显示。