Esempio n. 1
0
        /// <summary>
        /// 默认是收件箱 0收件箱, 1发件箱, 2草稿箱, 3回收站
        /// </summary>
        /// <returns></returns>
        public IActionResult Index(int pageIndex = 1, int pageSize = 10, string strKey = "")
        {
            List <Message> inboxList = messageAppService.GetPagingMessage(2, pageIndex, pageSize, strKey, 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(inboxList));
        }