示例#1
0
        public IActionResult Blogs(int page = 1)
        {
            var pager = new Pager(page);

            var blogs = _blogRepository.Query(a => a.Content.Contains("Blog"), pager);

            return(View(blogs));
        }
        public void QueryTest()
        {
            var list = _blogReposity.Query(a => a.Content.Contains("Blog"), new Pager(1));

            Assert.NotNull(list);
        }