/**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id, $taskId)
 {
     if ($this->checkProjectPermissions($id) == false) {
         return ['error' => 'Acesso Negado'];
     }
     $this->repository->find($taskId)->delete();
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id, $taskId)
 {
     $this->repository->find($taskId)->delete();
 }