I have an web app and it has a controller without a model. I'm am trying to get some information (in this case dateFrom) and I want to be passed in a method (of type ActionResult). The method it has the following signature GetInfo(DateTime dateFrom). Any ideas?
The code from razor is something like this:
<form method="post" [email protected]("GetInfo", "GetInfo", new {dateFrom=getFromUser})>
<input name="dateFrom" type="date" />
<input type="submit" />
</form>