How things get to the place
I have found this one thing by Microsoft that confused me so much
Here, how did we get object of Movie? Method doesn't have any aprameters so I simply cannot get it
6 Replies
Doesn't it need something like ([FromForm] Movie movie) to get model?
Some context would be good. It's probably a property, but hard to say for sure without more info
Model validation in ASP.NET Core MVC
Learn about model validation in ASP.NET Core MVC and Razor Pages.
Are controllers supposed to have properties? Other than services and configs
that specific example would be razor pages so its not a controller
So I would still need [FromForm] to use ModelState in controller