Creating a new ToDo from IForm Collection

#1

I have been trying to parse IForm Collection data into a ToDo object that I can add to a list of todos. This would Create a new todo and add it to the list that is displayed by my index view.

When I run the code the code stops at the creation of the object from the IForm data and does not continue.

Any ideas on where this went wrong… Please see my attachments below.
Repo_AddCreatedTodo|690x415 !

#2

Did you figure this one out?

#3

Yes- Thank you for your help in the chat… it was the dictionary key value not the list index.