private void Add(object sender, RoutedEventArgs e) { try { _book.BookTitle = BookTitleTextBox.Text; BookDataProvider.Create(_book); DialogResult = true; Close(); } catch (Exception ex) { log.Error(ex.Message); } }
private void Add(object sender, RoutedEventArgs e) { try { _book.BookTitle = BookTitleTextBox.Text; BookDataProvider.Create(_book); DialogResult = true; Close(); } catch (Exception ex) { log.Error(ex.Message); } }