private void btnUpdateById_Click(object sender, EventArgs e) { Dog dog = new Dog(); dog.Id = int.Parse(txtId.Text); dog.Name = txtName.Text; dog.Age = int.Parse(txtAge.Text); Controller.UpdateByID(dog); UpdateData(); }
private void btnUpdateById_Click(object sender, EventArgs e) { Dog dog = new Dog(); dog.Id = int.Parse(txtId.Text); dog.Name = txtName.Text; dog.Age = int.Parse(txtAge.Text); Controller.UpdateByID(dog); UpdateData(); }