Ejemplo n.º 1
0
        public void addPizzaToCart(DataContext context, HttpContextBase httpContext, int id)
        {
            var addedPizza = context.Pizzas.Single(item => item.Id == id);
            var cart       = cartProcessingService.GetCart(httpContext);

            orderProcessingService.AddToCart(addedPizza, cart);
        }