public int getQuantity(Sach sach) { var item = lineCollection.Find(x => x.Sach.MaSach == sach.MaSach); return(item.SoLuong); }
public void RemoveLine(Sach sp) { lineCollection.RemoveAll(l => l.Sach.MaSach == sp.MaSach); }