public static ShoppingCart GetCart(WebshopRepository repo, HttpContext context) { var cart = new ShoppingCart(repo); cart.shoppingCartId = cart.GetCartId(context); return(cart); }
public ShoppingCart(WebshopRepository context) { _context = context; }