protected void UpdateTable(object sender, EventArgs e)
        {
            int           key      = Convert.ToInt32(txtCustomerID.Text);
            CustomerTable customer = new CustomerTable(txtName.Text, Convert.ToInt32(txtAge.Text));

            customer.CustomerID = key;

            var client = new WebClient();

            client.Headers.Add("Content-Type:application/json");
            client.Headers.Add("Accept:application/json");
            string jsonString = JsonConvert.SerializeObject(customer);

            var result = client.UploadString(url + "/" + key, "PUT", jsonString);

            Console.WriteLine(Environment.NewLine + result);

            this.DisplayGrid(sender, e);
        }
        public void InsertIntoTable(object sender, EventArgs e)
        {
            CustomerTable customer = new CustomerTable(txtName.Text, Convert.ToInt32(txtAge.Text));
            var           client   = new WebClient();

            client.Headers.Add("Content-Type:application/json");
            client.Headers.Add("Accept:application/json");
            string jsonString = JsonConvert.SerializeObject(customer);
            //test a post!!!! an insert
            var result = client.UploadString(url, jsonString); //POST: note don't specify POST!!

            Console.WriteLine(Environment.NewLine + result);

            var str = JsonConvert.DeserializeObject(result);

            var   table = JsonConvert.DeserializeObject <dynamic>(result);
            Int32 id    = Convert.ToInt32(table["CustomerID"]);

            this.DisplayGrid();

            //return id;
        }