public bool UpdateSirket(Sirket entity) { try { bool isSuccess; using (var repo = new SirketRepository()) { isSuccess = repo.Update(entity); } return(isSuccess); } catch (Exception ex) { throw new Exception("SirketBusiness:SirketRepository:Güncelleme Hatası", ex); } }
public bool UpdateSirket(Sirket entity) { try { bool isSuccess; using (var repo = new SirketRepository()) { isSuccess = repo.Update(entity); } return(isSuccess); } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("BusinessLogic:SirketBusiness::UpdateSirket::Error occured.", ex); } }
public bool SirketGuncelle(Sirket sirket) { try { bool isSuccess; using (var repo = new SirketRepository()) { isSuccess = repo.Update(sirket); } return(isSuccess); } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("Business:SirketBusiness::SirketGuncelle::Hata Oluştu.", ex); } }