On a unified many-body theory of the DWBA and of the optical model