private void btnAdd_Click(object sender, EventArgs e) { try { _informationService.Add(new ELibraryInformation { Id = Convert.ToInt32(tbxId.Text), Ad = tbxAd.Text, Soyad = tbxSoyAd.Text, Telno = Convert.ToInt32(tbxTelno.Text), Kitapadi = tbxKitapAdi.Text, Kitapturu = tbxKitapTuru.Text, Kitapyazari = tbxKitapYazari.Text, Kitapsayfasayisi = Convert.ToInt32(tbxKitapSayfaSayisi.Text) }); MessageBox.Show("Ürün eklendi!"); LoadInformations(); } catch (Exception exception) { MessageBox.Show(exception.Message); } }