I have a login form which I want to use to pass a LoginViewModel back to the controller, even though the model inherits from RenderModel I get this error
'Umbraco.Web.Models.RenderModel', but this dictionary requires a model item of type 'OSConfs.Models.UmbracoIdentity.LoginViewModel'.
Umbraco Identity and strongly typed view
I have a login form which I want to use to pass a LoginViewModel back to the controller, even though the model inherits from RenderModel I get this error
'Umbraco.Web.Models.RenderModel', but this dictionary requires a model item of type 'OSConfs.Models.UmbracoIdentity.LoginViewModel'.
I seem to be missing a step.
My View:
My partial view:
My view Model:
I have tried variations of this also, ie having no partial view and having the Login.cshtml strongly typed to LoginViewModel
also tried using @inherits
On both either the login page or the partial view, but I get the same message.
If it's relevant the controller inherits from SurfaceController.
Cheers in advanced
is working on a reply...