예제 #1
0
        private void btnAddToCart_Click(object sender, RoutedEventArgs e)
        {
            int id = buyersBL.getBuyerIdBL(BuyerName);

            addCart.BuyerId = id;
            if (cartBL.AddCartBL(addCart))
            {
                MessageBox.Show("Product added to cart...");
            }
            else
            {
                MessageBox.Show("Failed to add to cart");
            }
        }