public List <Goods> SelectBy(int id) { GoodsInterface ti = dg.CreateGoods(); return(ti.SelectBy(e => e.GoodsID == id)); }
public List <Goods> SelectBys(int id) { GoodsInterface gf = dg.CreateGoods(); return(gf.SelectBy(e => e.TypeID == id)); }
//点击Shop查看这个商品的详细信息 public List <Goods> SelectByDescripy(int id) { GoodsInterface gf = dg.CreateGoods(); return(gf.SelectBy(e => e.GoodsID == id)); }