示例#1
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));
     }
 }