Foreign key merge statement error in asp.net when submitting form
I have 2 models, one for Poll and for PollOption. In the create action, I want to add 1 Poll to the database and a list of PollOptions as well. Each PollOption has a foreign key PollId. When I submit…