Exemplo n.º 1
0
        public IActionResult Index(int pageIndex = 1, int pageSize = 10, string strKey = "")
        {
            List <Document> docList = documentAppService.GetPagingDocuments(pageIndex, pageSize, out int pageCount, out int itemCount);

            ViewBag.Page      = TablePagination.PagingHtml(pageIndex, pageSize, pageCount, itemCount, strKey);
            ViewBag.PageIndex = pageIndex;
            ViewBag.PageSize  = pageSize;
            ViewBag.Key       = strKey;
            return(View(docList));
        }