Exemple #1
0
 public Kullanici KullaniciIdSec(int KullaniciId)
 {
     try
     {
         Kullanici responseEntitiy = null;
         using (var repo = new KullaniciRepository())
         {
             responseEntitiy = repo.IdSec(KullaniciId);
         }
         return(responseEntitiy);
     }
     catch (Exception ex)
     {
         throw new Exception("KullaniciBusiness:KullaniciRepository:Seçme Hatası", ex);
     }
 }
Exemple #2
0
 public Kullanici KullaniciIdSil(int KullaniciId)
 {
     try
     {
         using (var repo = new KullaniciRepository())
         {
             if (repo.IdSil(KullaniciId))
             {
                 return(repo.IdSec(KullaniciId));
             }
         }
         return(null);
     }
     catch (Exception ex)
     {
         throw new Exception("KullaniciBusiness:KullaniciRepository:Silme Hatası", ex);
     }
 }