My form is as follows, how can I retrieve the values in my controller:
<% using (Html.BeginForm("Create","Employee"))
{%> <%= Html.ValidationSummary()%>
<p><label for = "Name" >Name</label>
<%= Html.TextBoxFor(model => model.EmployeeName)%>
<%= Html.ValidationMessageFor(model => model.EmployeeName)%>
</p>
<label for = "ProName">Project</label>
<table id="projectTable">
<tr> <td> <label for="Name" id = 1>UT1</label></td></tr>
<tr> <td> <label for="Name" id= 2>UT2</label></td></tr>
</table>
<input type ="submit" value="Save" id="submit" />
<% }%>
public class Customer()
{ public string EmployeeName{get;set;}
public Customer()
{
projects = new List<Projects>();
}
}
pubic class Projects() { public int id{get;set;} }