public function update(array $data, $id)
 {
     try {
         $this->clientValidator->with($data)->passesOrFail();
         $this->clientRepository->update($data, $id);
     } catch (ValidatorException $e) {
         return ['error' => true, 'message' => $e->getMessageBag()];
     }
 }
 public function destroy($id)
 {
     return $this->clientRepository->delete($id);
 }