Esempio n. 1
0
 private void BtnAdd_Click(object sender, EventArgs e)
 {
     #region Validation
     if (string.IsNullOrWhiteSpace(txtTheaterName.Text))
     {
         MessageBox.Show("Salon adı alanı boş bırakılamaz.");
     }
     #endregion
     TheaterDTO dto = new TheaterDTO()
     {
         TheaterName = txtTheaterName.Text
     };
     bool result = _tc.AddTheater(dto);
     if (result)
     {
         MessageBox.Show("Salon başarıyla eklendi.");
     }
 }