Exemple #1
0
 public Cart(Guid cartID)
 {
     _context = new SmartNerdDataContext();
     _order = (from o in _context.Orders
               where o.CartID == cartID
               select o).First();
 }
Exemple #2
0
 public Cart()
 {
     _context = new SmartNerdDataContext();
     _order = new DataModels.Order();
     _context.Orders.InsertOnSubmit(_order);
 }