This may be a silly question and is more of a question about how to do something rather than an actual coding issue.
I want to have a partial view which contains a search form and search results and uses model Suppliers.
This partial view would then be rendered in multiple views that use different models.
Is it possible for me to this or do I have to create the search form within each view or create a partial view for each view so that the view and partial view use the same model?
If I use the Suppliers model for the partial view and another model for the view I just get error:
The model item passed into the dictionary is of type 'x', but this dictionary requires a model item of type 'y'.