@DELETE
    @Produces(MediaType.APPLICATION_JSON)
    public void  deleteTask(@PathParam("id") int id) throws SQLException {
        if (daoHelper.isIdExist(id)) {
            daoHelper.deleteTask(id);
        }
    }