public IActionResult Index(int page = 1)
        {
            int        pageSize = 8;
            int        count    = 0;
            List <Tag> tagList  = _tagBusiness.GetList();
            var        dataList = _articleBusiness.GetPageList(pageSize, page, out count, m => m.IsPublish == true);
            List <ArticleListModel> articleList =
                dataList
                .OrderByDescending(m => m.CreateTime)
                .Select(m => new ArticleListModel {
                Id = m.Id, Title = m.Title, Cover = m.Cover, PageView = m.PageView
            })
                .ToList();

            ViewBag.TagList   = tagList;
            ViewBag.PageIndex = page;
            ViewBag.TotalPage = (int)Math.Ceiling(count / (decimal)pageSize);
            return(View(articleList));
        }
 public async Task <JsonResultModel <ArticleInfo> > GetPageList([FromQuery] ArticleSearchRequest request)
 {
     return(await _articleBusiness.GetPageList(request));
 }