Пример #1
0
 public Arac AracIdSec(int AracId)
 {
     try
     {
         Arac responseEntitiy = null;
         using (var repo = new AracRepository())
         {
             responseEntitiy = repo.IdSec(AracId);
         }
         return(responseEntitiy);
     }
     catch (Exception ex)
     {
         throw new Exception("AracBusiness:AracRepository:Seçme Hatası", ex);
     }
 }
Пример #2
0
 public Arac AracIdSil(int AracId)
 {
     try
     {
         using (var repo = new AracRepository())
         {
             if (repo.IdSil(AracId))
             {
                 return(repo.IdSec(AracId));
             }
         }
         return(null);
     }
     catch (Exception ex)
     {
         throw new Exception("AracBusiness:AracRepository:Silme Hatası", ex);
     }
 }