Posted on: 11/17/2014 5:57:04 PM | Views : 429

Basically I want to send out one email with a list of products based on a users complete shopping cart , with one address.
eg Email to contain.
Product ID 1 x 5 .
Product ID 2 x 7.
Send to one postal address.
My Cart class:
public class Cart { private List<CartLine> lineCollection = new List<CartLine>(); public void AddItem(Product product, int quantity) { CartLine line = lineCollection .Where(p => p.Product.ProductID == product.ProductID) .FirstOrDefault(); if (line == null) { lineCollection.Add(new CartLine { Product = product, Quantity = quantity }); } else { line.Quantity += quantity; } } public void RemoveLine(Product product) { lineCollection.RemoveAll(l => ...

Go to the complete details ...