public ActionResult ListOfPosts() { var posts = postRepo.AllPosts() .OrderByDescending(x => x.CreationTime); return(PartialView(posts.ToList())); }
public ActionResult ListOfPosts() { var posts = postRepo.AllPosts() .OrderByDescending(x => x.CreationTime); return(PartialView(posts.ToList())); }