public bool DeleteById(int id) { try { bool isSuccess; using (var rentalRequestRepository = new RentalRequestRepository()) { isSuccess = rentalRequestRepository.DeleteByID(id); } return(isSuccess); } catch (Exception ex) { LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true); throw new Exception("CarRental.BusinessLogic.Concretes::Delete:Error occured.", ex); } }