private void btnAuthorAdd_Click(object sender, EventArgs e) { try { Author author = new Author(authorID, authorName); author.Name = txbAutorNombre.Text; if (authorController.AddAuthor(author) != null) { MessageBox.Show("Se agregó un autor con éxito."); } updateAll(); } catch (Exception ex) { error = ex.Message; MessageBox.Show(error); } }