示例#1
0
 public bool UpdateAttrValue(string valueID, string attrid, string valueName, string operateIP, string operateID, string clientid)
 {
     var dal = new ProductsDAL();
     var bl = dal.UpdateAttrValue(valueID, valueName);
     if (bl)
     {
         var model = GetProductAttrByID(attrid, clientid);
         var value = model.AttrValues.Where(m => m.ValueID == valueID).FirstOrDefault();
         value.ValueName = valueName;
     }
     return bl;
 }
示例#2
0
 /// <summary>
 /// 编辑属性值
 /// </summary>
 /// <param name="valueID">值ID</param>
 /// <param name="valueName">名称</param>
 /// <param name="operateIP">操作IP</param>
 /// <param name="operateID">操作人</param>
 /// <returns></returns>
 public bool UpdateAttrValue(string valueID, string valueName, string operateIP, string operateID)
 {
     var dal = new ProductsDAL();
     return dal.UpdateAttrValue(valueID, valueName);
 }