Can I pass data to controller Without using Html.EditorFor
etc?
Just by using simple HTML inputs like:
View:
@using (Html.BeginForm("Add", "Parameter", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
<fieldset>
<input type="text" name="product.Name" id="product.Name"/>
<input type="text" name="product.Description" id="product.Description"/>
<input type="submit">
</fieldset>
}
Controller:
[HttpPost]
public ActionResult Add(Product product)
{
return null;
}