Ejemplo n.º 1
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            Wine wine = new Wine
            {
                Name = txtName.Text,
            };

            BussinessWine.AddWines(wine);
            WineDropDownFill();
        }
Ejemplo n.º 2
0
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            Wine wine = new Wine
            {
                ID   = Convert.ToInt32(DropDownListWine.SelectedValue),
                Name = txtName.Text,
            };

            BussinessWine.UpdateWine(wine);
            WineDropDownFill();
        }