コード例 #1
0
        private void btnRegistrarOferta_Click(object sender, EventArgs e)
        {
            string token = Session.Token;

            dynamic objectCreate = new System.Dynamic.ExpandoObject();

            objectCreate.idTransportAuction = Session.idTransportAuction;
            objectCreate.idCarrier          = Session.id;
            objectCreate.price = txtPrice.Text;

            var createAuction = VirtualFairIntegration.CreateAuctionCarrier(token, objectCreate);

            if (createAuction.statusCode == 201)
            {
                string text  = createAuction.message;
                string title = "Información";
                MessageBox.Show(text, title, MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
            }
        }