/// <summary>
 /// 新增商品
 /// </summary>
 /// <param name="good">商品对象</param>
 /// <returns></returns>
 public static bool AddGoods(GoodsTable good)
 {
     return(GoodsDal.AddGoods(good) == 1);
 }
示例#2
0
 public string Add(Passport passport, Goods item)
 {
     return(dal.AddGoods(passport, item) > 0 ? "" : ErrorMsg.AddFailMsg());
 }