I have a form that I want to submit to my controller, but I don't know how I should do it, I'm using MVC 5. This are the fields:
@foreach (var item in Model)
{
<input type="text" name="product[@item.ProductId]" class="form-control input-number" value="0" min="0">
}
The productId should be the key of the array item and the value of the array item should be the value of the inputbox.