public JsonResult DeleteAgentProduct(long id) { Result result = new Result { success = false, msg = "错误的诊疗项目编号" }; if (id > 0) { List <long> ids = new List <long>(); ids.Add(id); _iDistributionService.RemoveAgentProducts(ids, curUserId); result = new Result { success = true, msg = "移除代理成功" }; } return(Json(result)); }