public IHttpActionResult List(organizeparm parm) { try { int recordcount = 0; OrganizeService os = new OrganizeService(); var list = os.List(parm, out recordcount); return(Json(new { code = 1, msg = "ok", list = list, recordcount = recordcount })); } catch (Exception e) { return(Json(new { code = 0, msg = e.Message })); } }