Example #1
0
        public JsonResult LoadData(string name, int page, int pageSize)
        {
            var dao      = new MemberDao();
            var model    = dao.ListAllPage(name, page, pageSize);
            int totalRow = dao.Count(name);

            return(Json(new
            {
                data = model,
                total = totalRow,
                status = true
            }, JsonRequestBehavior.AllowGet));
        }