public override void RemoveLine(Book book) { base.RemoveLine(book); Session.SetJson("Cart", this); }
public override void AddItem(Book book, int quantity) { base.AddItem(book, quantity); Session.SetJson("Cart", this); }
public virtual void RemoveLine(Book proj) => Lines.RemoveAll(x => x.Book.BookId == proj.BookId);
internal void RemoveItem(Book book) { throw new NotImplementedException(); }
//method for removal public virtual void RemoveLine(Book book) => Lines.RemoveAll(x => x.Book.BookId == book.BookId);