private void btnSave_Click(object sender, EventArgs e)
        {
            KuzeyYeliDTO.ProductDTO product = new KuzeyYeliDTO.ProductDTO();
            decimal d;

            if (txtProduct.Text == "")
            {
                product.UrunAdi = null;
            }

            else
            {
                product.UrunAdi = txtProduct.Text;
            }

            if (decimal.TryParse(nudCost.Text, out d))
            {
                product.Fiyat = d;
            }

            else
            {
                product.Fiyat = null;
            }

            if (txtDemand.Text == "")
            {
                product.BirimdekiMiktar = null;
            }

            else
            {
                product.BirimdekiMiktar = txtDemand.Text;
            }

            product.KategoriID  = (int)cmbCategory.SelectedValue;
            product.TedarikciID = (int)cmbSupplier.SelectedValue;

            ValidationContext        context = new ValidationContext(product, null, null);
            IList <ValidationResult> errors  = new List <ValidationResult>();


            string message = "";

            if (!Validator.TryValidateObject(product, context, errors, true))
            {
                foreach (ValidationResult result in errors)
                {
                    message = message + result + "\n";
                }
                MessageBox.Show(message);
            }
            else
            {
                clientProduct.Insert(product);
                dataGridView1.DataSource = clientProduct.List();
                MessageBox.Show("Validated, product is inserted to the database");
            }
        }