i have a form that i am submitting to my controller. I created a data class that is used to pass into my controller to do something like this:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Update(ApplicationUpdater applicationUpdater_)
{
}
the issue is i used to have a list in a multi select dropdown and that simple mapped to an array of strings in my binding data object.
public class ApplicationUpdater
{
public string[] dependencies { get; set; }
}
the issue now is that i have to store more attributes so i changed the dropdown to a dynamically generated html table (table is generated using jquery)
so i have a table
<table border=1>
<tr><td>Joe</td><td>Thompson</td></tr>
<tr><td>Billy</td><td>Williams</td></tr>
</table>
and i want to convert these values into an array of Name objects where the first column is Name.First and the second column is Name.Last.
so in theory i could then have my binding object be something like this.
public class ApplicationUpdater
{
public Name[] dependencies { get; set; }
}