private void AddOrganization_Click(object sender, RoutedEventArgs e) { using (var Db = new ResourceModel()) { MessageBox.Show(Db.AddDepartmentOrOrganization(TB_Title.Text, "Organization")); Update(); } }