public object EditExtension(string citizenid, int day, string extensioncontent) { try { SM_CitizenServicesBLL bll = new SM_CitizenServicesBLL(); int id = bll.EditExtension(citizenid, day, extensioncontent); if (id > 0) { return(new { msg = "上报成功", resCode = 1 }); } else { return(new { msg = "json数据不正确", resCode = 0 }); } } catch (Exception) { return(new { msg = "json数据不正确", resCode = 0 }); // return "{\"msg\":\"json数据不正确\",\"resCode\":\"0\"}"; } }