public bool DeleteSirketById(int ID) { try { bool isSuccess; using (var repo = new SirketRepository()) { isSuccess = repo.DeletedById(ID); } return(isSuccess); } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("BusinessLogic:SirketBusiness::DeleteSirket::Error occured.", ex); } }
public bool SirketSilById(int sirketID) { try { bool isSuccess; using (var repo = new SirketRepository()) { isSuccess = repo.DeletedById(sirketID); } return(isSuccess); } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("Business:SirketBusiness::SirketSilById::Hata Oluştu.", ex); } }