Exemple #1
0
        public int getQuantity(Sach sach)
        {
            var item = lineCollection.Find(x => x.Sach.MaSach == sach.MaSach);

            return(item.SoLuong);
        }
Exemple #2
0
 public void RemoveLine(Sach sp)
 {
     lineCollection.RemoveAll(l => l.Sach.MaSach == sp.MaSach);
 }