public bool InsertKullanici(Kullanici entity)
 {
     try
     {
         bool isSuccess;
         using (var repo = new KullaniciRepository())
         {
             isSuccess = repo.Insert(entity);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         throw new Exception("SOABusiness:KullaniciBusiness::InsertKullanici::Error occured.", ex);
     }
 }
Beispiel #2
0
 public bool KullaniciEkle(Kullanici kull)
 {
     try
     {
         bool isSuccess;
         using (var repo = new KullaniciRepository())
         {
             isSuccess = repo.Insert(kull);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("Business:KullaniciBusiness::KullaniciEkle::Hata Oluştu.", ex);
     }
 }
Beispiel #3
0
 public JsonResult Ekle(Kullanici kullanici)
 {
     try
     {
         Kullanici kln = _kullaniciRepository.GetByMail(kullanici.Mail);
         if (kln == null)
         {
             _kullaniciRepository.Insert(kullanici);
             _kullaniciRepository.Save();
             return(Json("Kullanıcı Kaydı Başarıyla Yapıldı"));
         }
         return(Json("Girdiğiniz E-Mail Sisteme Kayıtlı"));
     }
     catch (Exception ex)
     {
         return(Json(ex.Message));
     }
 }