Example #1
0
 public bool Add(KelimeModel kelime)
 {
     try
     {
         return(kelimeDAL.Insert(kelime));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
 public bool KelimeEkle(Kelime kelime)
 {
     try
     {
         KelimeninVarligi(kelime.Ingilizce);
         UzunlukKontrol(kelime.Turkce, kelime.Ingilizce);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
     kelime.AktifMi = true;
     return(_kelimeDAL.Insert(kelime));
 }
Example #3
0
 public bool KelimeEkle(Kelime kelime)
 {
     try
     {
         KelimeninVarligi(kelime.Ingilizce);
         UzunlukKontrol(kelime.Turkce, kelime.Ingilizce);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
     kelime.AktifMi           = true;
     kelime.OlusturulmaTarihi = DateTime.Now;
     kelime.GuncellenmeTarihi = DateTime.Now;
     return(_kelimeDAL.Insert(kelime));
 }