コード例 #1
0
        public void RemoveFromCart(Guid id, string email)
        {
            var cToDelete = _cartsRepo.GetCarts().Where(x => x.Email == email && x.Product_FK == id);

            if (cToDelete != null)
            {
                _cartsRepo.DeleteCarts(cToDelete);
            }
        }