public void ShowGoodsDetail(string goodsID) { List <Goods_PropertyModel> propertyList = bllProperty.GetModelListByGoodsID(goodsID); ViewDataManager.GOODSVIEWDATA.GoodsPropertyList.Clear(); if (propertyList == null) { return; } foreach (Goods_PropertyModel goods in propertyList) { GoodsPropertyModel gsm = new GoodsPropertyModel(); gsm.属性名称 = goods.Goods_Property_Name; gsm.属性值 = goods.Goods_Property_Data; ViewDataManager.GOODSVIEWDATA.GoodsPropertyList.Add(gsm); } }
public ActionResult EditGoodsProperty(GoodsPropertyModel model) { var result = _goodsPropertyService.UpdateService.UpdateColumn(model); return(BoolResult(result)); }
public ActionResult AddGoodsProperty(GoodsPropertyModel model) { var result = _goodsPropertyService.AddService.AddColumn(model); return(BoolResult(result)); }