Exemplo n.º 1
0
        // GET: TopicController
        public ActionResult Index(int?page)
        {
            page = page == null ? 1 : (int)page;
            ICollection <Topic> topics = topicService.FindPage(page);

            return(View("Search", new TopicListViewModel(topics, page ?? 1, Math.Max(1, topicService.CountPages()))));
        }