Пример #1
0
        public ActionResult ListOfPosts()
        {
            var posts = postRepo.AllPosts()
                        .OrderByDescending(x => x.CreationTime);

            return(PartialView(posts.ToList()));
        }