There are several ways to do this in MVC. You can visit this: link
You can use one ViewModel, which will contain your data HOme, Car, AboutMe.
You can also use partial views. Here I am going to explain to you using one viewmodel approach.
In your ViewModel:
public class SingleViewModel { public List<Home> ListHome {get; set;} public List<Car> ListCar {get; set;} public List<AboutMe> ListAboutMe {get; set;} }
In the controller:
public ActionResult Index() {
In view
@model <Proj.Model.SingleViewModel>
// now you can fill in the data from your model here //
source share