I have been banging my head against the computer trying to figure out where I am going wrong.
First off, here is the code: https://github.com/grantwatsondoc/tester
What is expected to happen:
I have a view page titled Survey.cshtml. Once a user goes to this page, they fill out a demographic survey as pictured here.
I have predefined answered as enumerations in the dropdown boxes in the Survey entity. I am wanting the selected item of each dropdown box to be saved to the database to an attached id. So that when create the function for the admin to run a report on a group of users that have completed this survey, the admin will see the displayed names of each individual.
What is actually happening:
When I click on submit survey, everything, and I mean everything gets saved with an ID of zero, regardless of what I selected.
I am not sure what to fix, and if someone will graciously help me with this, I will be grateful.