public override void RemoveItem(BookModel book)
 {
     base.RemoveItem(book);
     Session.SetJson("cart", this);
 }
Example #2
0
 // remove an item
 public virtual void RemoveItem(BookModel book) =>
 LineItems.RemoveAll(x => x.Book.BookId == book.BookId);
 public override void AddItem(BookModel book, int quantity)
 {
     base.AddItem(book, quantity);
     Session.SetJson("cart", this);
 }