public bool DeleteAracById(int ID) { try { bool isSuccess; using (var repo = new AracRepository()) { isSuccess = repo.DeletedById(ID); } return(isSuccess); } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("BusinessLogic:AracBusiness::AracCustomer::Error occured.", ex); } }
public bool AracSilById(int aracID) { try { bool isSuccess; using (var repo = new AracRepository()) { isSuccess = repo.DeletedById(aracID); } return(isSuccess); } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("Business:AracBusiness::AracSilById::Hata Oluştu.", ex); } }