Пример #1
0
        // GET: Order
        public JsonResult AddToCart(string Email, Guid ProductId, int Quantity, Guid UserId, int Total, Guid BasketId,
                                    float SellingPrice, Guid ItemId)
        {
            var data = services.AddToCart(order.Email, order.ProductId, order.Quantity, order.UserId, order.Total, order.BasketId, order.SellingPrice, order.ItemId);

            return(Json(data));
        }
Пример #2
0
 private void btn_Submit_Click(object sender, EventArgs e)
 {
     if (orderDetail.Count > 0)
     {
         orderDetail.ProductRemarks = GetRemarks();
         _orderServices.AddToCart(orderDetail);
         this.Close();
     }
     else
     {
         MetroMessageBox.Show(this, $"商品數量不得為 0 ", "注意", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }