How does the address bus , Memory Controller , RAM and CPU interact?

So I was taking a course and didnt quite get what was happening so I tried to research the material and found 2 different representations for the topic.

2 Photos

CPU getting data/instructions from RAM

So the first one shows that the Memory controller is part of the CPU and the process of sending data is:

CPU -> Memory controller -> Address bus -> RAM -> Data Bus -> CPU

The second shows :

CPU -> Address Bus -> Memory Controller -> Ram -> Memory Controller -> Data bus -> CPU

I did search for the topic but couldn’t find an answer as most people don’t show memory controller and address bus interaction

So does anybody know which is the right one ?

Thanks in advance