I have action method
[HttpPost]
public virtual ActionResult Search(string searchTerm)
...
And Form
@using (Html.BeginForm(MVC.Products.Search(), FormMethod.Post))
{
<input id="searchBox" name="searchTerm" type="text" />
<input type="submit" value="Search" />
}
But this will not work, Search() require searchTerm parameter and I don’t know how to pass it?
You could pass null: