ASP.NET MVC Model Binding into a List
- by Maxim Z.
In my ASP.NET MVC site, part of a feature allows the user to enter the hours when a certain venue is open.
I've decided to store these hours in a VenueHours table in my database, with a FK-to-PK relationship to a Venues table, as well as DayOfWeek, OpeningTime, and ClosingTime parameters.
In my View, I want to allow the user to only input the…