✅ MVC Core: Model Properties Not Passing to Controller Method
I have a model that I'm trying to have passed back to a controller method, but its properties are appearing as null. The correct POST method is being hit.
I have listed out each property in the form to POST back via
Html.HiddenFor(x => x.PropertyName)
as I have done in many places within this project. They are still coming back null. Any ideas as to what may be going on?3 Replies
Show your controller
Usually, the issue has something to do with
async
. Either something not being awaited or some async void
method somewhere
Disregard. I've figured out several issues. The main one being an AutoMapper issue.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.