Beispiel #1
0
        public IEnumerable <Topic> Get()
        {
            var topics = _repo.GeTopics()
                         .OrderByDescending(t => t.Created)
                         .Take(25)
                         .ToList();

            return(topics);
        }
Beispiel #2
0
        public ActionResult Index()
        {
            var topics = _repo.GeTopics()
                         .OrderByDescending(t => t.Created)
                         .Take(25)
                         .ToList();

            return(View(topics));
        }