I think it's just a typo. Your model type is called PropertySearchResultsModel but you have used it as propertySearchResultsModel in the view. If you make the "p" uppcase it should be fine.
If not then:
how do you call your controller method?
and why have you inherited from RenderModel?
Calling a view with custom model
I am trying to open a view from a surface controller, but the view responds with:
The type or namespace name 'propertySearchResultsModel' could not be found (are you missing a using directive or an assembly reference?)
Model:
Surface Controller:
View:
I have ready other posts on this topic (i.e. https://our.umbraco.org/forum/templating/templates-and-document-types/43193-Current-page-in-view#comment-155630), and I believe I am on the right path, but I'm still struggling. Any help would be greatly appreciated.
Hi Bobby,
I think it's just a typo. Your model type is called PropertySearchResultsModel but you have used it as propertySearchResultsModel in the view. If you make the "p" uppcase it should be fine.
If not then: how do you call your controller method? and why have you inherited from RenderModel?
Regards David
is working on a reply...