public JsonResult Page(int pageIndex, int pageSize, string name) { var sql = Sql.Builder.Where("role_name like @0", "%" + name + "%"); var page = SysRole.Page(pageIndex, pageSize, sql); return(Json(new ResponseData { Total = page.TotalItems, Data = page.Items })); }