public bool InsertSirket(Sirket entity) { try { bool isSuccess; using (var repo = new SirketRepository()) { isSuccess = repo.Insert(entity); } return(isSuccess); } catch (Exception ex) { throw new Exception("SOABusiness:SirketBusiness::InsertSirket::Error occured.", ex); } }
public bool InsertSirket(Sirket entity) { try { bool isSuccess; using (var repo = new SirketRepository()) { isSuccess = repo.Insert(entity); } return(isSuccess); } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("BusinessLogic:SirketBusiness::InsertSirket::Error occured.", ex); } }
public bool SirketEkle(Sirket sirket) { try { bool isSuccess; using (var repo = new SirketRepository()) { isSuccess = repo.Insert(sirket); } return(isSuccess); } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("Business:SirketBusiness::SirketEkle::Hata Oluştu.", ex); } }