Example #1
0
        private void btnKaydet_Click(object sender, EventArgs e)
        {
            Calisan c = new Calisan();

            c.CalisanAdi    = textBox1.Text;
            c.CalisanSoyadi = textBox2.Text;
            cr.Insert(c);
            Getir();
        }
 public bool InsertCalisan(Calisan entity)
 {
     try
     {
         bool isSuccess;
         using (var repo = new CalisanRepository())
         {
             isSuccess = repo.Insert(entity);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("BusinessLogic:CalisanBusiness::InsertCalisan::Error occured.", ex);
     }
 }