public IHttpActionResult Delete(int id) { GoodsManager bll = new GoodsManager(); var result = bll.Delete(id); return(Json(result)); }
//根据id删除 public ActionResult DelectId(Goods info1) { GoodsManager goods = new GoodsManager(); var lis = goods.Delete(info1.GoodsId); return(Json(lis, JsonRequestBehavior.AllowGet)); }
/// <summary> /// 删除商品 /// </summary> /// <param name="goodsIds"></param> /// <returns></returns> public string DeleteGoods(List <Guid> goodsIds) { var res = _manager.Delete(goodsIds); return(Utils.SerializeObject(res)); }