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); } }
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); } }