示例#1
0
        // GET: Topic
        public ActionResult Index(int?pageSize, int?page)
        {
            int rows                 = pageSize ?? Common.Contant.Configuration.POST_PER_PAGE;
            int pageNumber           = page ?? Common.Contant.Configuration.FIRST_NUMBER;
            TopicsSearchResult model = _topicService.GetAll(rows, pageNumber);

            return(View(model));
        }
示例#2
0
        public TopicsSearchResult GetAll(int size, int skip)
        {
            TopicsSearchResult res = new TopicsSearchResult()
            {
                Topics      = _topicRepository.GetAll(size, skip),
                TotalTopics = _topicRepository.Count()
            };

            return(res);
        }