/**
  * To delete a task
  *
  * @param task $id
  *
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function destroy($id)
 {
     $success = $this->taskRepo->delete($id);
     if ($success) {
         return $this->responseDelete('Task');
     }
     return $this->responseBad('Whoops! There were some problems with your input.');
 }