public ActionResult MoviesList() { var movies = new List <Movie>() { new Movie { Id = 1, Name = "Shrek" }, new Movie { Id = 2, Name = "Dino World" } }; var viewModel = new MoviesCustomersViewModel() { Movies = movies }; return(View(viewModel)); }
public ActionResult CustomersList() { var customers = new List <Customer>() { new Customer { Id = 1, Name = "Customer1" }, new Customer { Id = 2, Name = "Customer 2" } }; var viewModel = new MoviesCustomersViewModel { Customers = customers }; return(View(viewModel)); }