SCENARIO: I have two drop-downs, As soon as I click the submit button, It needs to get two int value of "UserTableId" in the constructor,
Problem: I am unable to understand how should I write them so that I can get values from the drop-downs.
Create/View
<div class="form-group row">
<label>User Id</label>
<div class="col-md-10">
@Html.DropDownList("UserTableId", null, htmlAttributes: new { @class = "btn btn-primary" })
@Html.ValidationMessageFor(model => model.UserTable.User_id, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group row">
<label>User Id</label>
<div class="col-md-10">
@Html.DropDownList("UserTableId", null, htmlAttributes: new { @class = "btn btn-primary"})
@Html.ValidationMessageFor(model => model.UserTable.User_id, "", new { @class = "text-danger" })
</div>
</div>
Controller
public ActionResult ShowAllDetail(int UserTableId,int UserTableId) //how should I pass the same parameter or whats the solution????
{...............}
