Question: how to pass data from controller to ajax?
Answer: There is no such thing as passing a data from controller via ajax. You can pass a data with ajax only from the View to the Controller. It is used in cases of SPA functionality. If you want to load data and display it in the view you should use view model in MVC and load it directly in your view.