Contact type hypersurfaces and legendre duality