I've got an MVC project with a Layout that has strongly typed model named "Dashboard".
@model Dashboard_v2.Models.Dashboard
This Layout has a RenderBody() method that renders the rest of the pages.
then, on my main page, I have a View that is strongly typed with the Model NewPatient.
on the controller I have bunch of code, and eventually I pass a NewPatient Model to it.
When I try to run this code, I've got an error called :
The model item passed into the dictionary is of type 'Dashboard_v2.Models.NewPatient', but this dictionary requires a model item of type 'Dashboard_v2.Models.Dashboard'.
why does it expects a Dashboard Model, if my page has strongly typed NewPatient Model?