Beispiel #1
0
        public void DeleteCart(CartViewModel c)
        {
            Cart cart = _cartRepo.GetCart(c.Email);

            if (cart != null)
            {
                _cartRepo.DeleteCart(cart);
            }
        }
 public bool DeleteCart(int id)
 {
     try
     {
         _context.DeleteCart(id);
     }
     catch (DbException e)
     {
         //TODO Add logging
         return(false);
     }
     return(true);
 }
 public void DeleteFromCart(Guid id)
 {
     _cartsRepo.DeleteCart(id);
 }