public function delete($id)
 {
     try {
         $this->repository->beginTransaction();
         $this->repository->deleteItems($id);
         $this->repository->delete($id);
         $this->repository->commitTransaction();
         return true;
     } catch (Exception $e) {
         $this->repository->rollbackTransaction();
         return false;
     }
 }