private void Insert() { try { string name_book = InsertBookName(); int year_of_writing_book = InsertYearOfWritingBook(); dB_Connection.AddBook(name_book, year_of_writing_book); Console.WriteLine("Выберите автора:"); int id_Book = dB_Connection.GetIdBook(name_book, year_of_writing_book); ChooseAuthor(id_Book, name_book, year_of_writing_book); } catch (Exception ex) { Console.WriteLine(ex.Message); } }