public IEnumerable <Topic> Get() { var topics = _repo.GeTopics() .OrderByDescending(t => t.Created) .Take(25) .ToList(); return(topics); }
public ActionResult Index() { var topics = _repo.GeTopics() .OrderByDescending(t => t.Created) .Take(25) .ToList(); return(View(topics)); }