[HttpGet]public JsonResult GetModifyList(int? id){object CustomerList = db.Raslyer_Table_Customers_Modify.Where(u=>u.CustomerId==id);return Json(CustomerList, JsonRequestBehavior.AllowGet);}我的CustomerList获取的是 可是每当返回json时就报错:Jsonerror CS0428: 无法将方法组“Json”转换为非委托类型“object”。是否希望调用此方法? 这是我的前台代码:路过的大神帮忙解决一下呗,我试了好几种方法,都不能解决
1 回答
![?](http://img1.sycdn.imooc.com/5333a207000118af02200220-100-100.jpg)
宝慕林4294392
TA贡献2021条经验 获得超8个赞
var CustomerList = db.Raslyer_Table_Customers_Modify.Where(u=>u.CustomerId==id).ToString();
添加回答
举报
0/150
提交
取消