It is quit often we want to post a list of data to an action to save them. Ideally ASP.NET MVC Model Binding should be able to deal with this scenario. It should bind them into a list of data entities. And yes! Model Binding does offer us this convenicency. You can check out references below for more details. In this post, I will show how I use this feature with jQuery Ajax Post.
Post Action
We declare a collection of chore data entities.
Ajax Post
We loop through all new chores and generate an array of them. And we post the data in JSON format to the action method.