private void AddZoo_Clicked(object sender, RoutedEventArgs e) { ZooModel zooModel = new ZooModel(); zooModel.Location = textZoo.Text; try { DbConnectionManager.AddZoo(zooModel); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } finally { textZoo.Text = ""; ShowZooList(); } }