示例#1
0
文件: Cart.cs 项目: chalkybug/TTCNWeb
        public int getQuantity(Sach sach)
        {
            var item = lineCollection.Find(x => x.Sach.MaSach == sach.MaSach);

            return(item.SoLuong);
        }
示例#2
0
文件: Cart.cs 项目: chalkybug/TTCNWeb
 public void RemoveLine(Sach sp)
 {
     lineCollection.RemoveAll(l => l.Sach.MaSach == sp.MaSach);
 }