Exemple #1
0
        public IActionResult user_list(FenYeModel fen)
        {
            string currentPage = Request.Form["currentPage"];

            fen.CurrentPage = int.Parse(currentPage.ToString());
            fen.PageSize    = 3;
            fen.Where       = "";
            fen.KeyName     = "user_id";
            fen.TableName   = "users";
            List <usersModel>           page = iub.FenYe(fen);
            Dictionary <string, object> di   = new Dictionary <string, object>();

            di["dt"]       = page;
            di["pages"]    = fen.Pages;
            di["rows"]     = fen.Rows;
            di["PageSize"] = fen.PageSize;
            return(Content(JsonConvert.SerializeObject(di)));
        }