protected void btnInsertDiscount_Click(object sender, EventArgs e)
        {
            //Insert Values into discounts table using linq
            TreasureLandDataClassesDataContext db = new TreasureLandDataClassesDataContext();
            Discount addDiscount = new Discount();
            addDiscount.DiscountDescription = txtDiscountDescription.Text;
            addDiscount.DiscountExpiration = Convert.ToDateTime(txtDiscountExpiration.Text);
            addDiscount.DiscountRules = txtDiscountRules.Text;
            addDiscount.DiscountAmount = Convert.ToDecimal(txtDiscountAmount.Text);

            if (cbIsPercentage.Checked)
            {
                addDiscount.IsPrecentage = true;
            }
            else
            {
                addDiscount.IsPrecentage = false;
            }
            db.Discounts.InsertOnSubmit(addDiscount);
            db.SubmitChanges();
            GridView1.DataBind();
        }
 partial void UpdateDiscount(Discount instance);
 partial void DeleteDiscount(Discount instance);
 partial void InsertDiscount(Discount instance);