The model item is of type CookMeIndexViewModel, but requires a model item of type IEnumerable
In your view you are using @model IEnumerable<CookMe_MVC.ViewModels.CookMeIndexViewModel> which indicates that the model expected by the View is of type IEnumerable of CookMeIndexViewModel. However in the controller you are passing an object of type CookMeIndexViewModel as a model return View(viewModel); hence the error. Either change the view to have @model CookMe_MVC.ViewModels.CookMeIndexViewModel or pass a IEnumerable … Read more