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