public Sirket SirketIdSec(int sirketId) { try { Sirket responseEntitiy = null; using (var repo = new SirketRepository()) { responseEntitiy = repo.IdSec(sirketId); } return(responseEntitiy); } catch (Exception ex) { throw new Exception("SirketBusiness:SirketRepository:Seçme Hatası", ex); } }
public Sirket SirketIdSil(int sirketId) { try { using (var repo = new SirketRepository()) { if (repo.IdSil(sirketId)) { return(repo.IdSec(sirketId)); } } return(null); } catch (Exception ex) { throw new Exception("SirketBusiness:SirketRepository:Silme Hatası", ex); } }