I have action method like that:
public ActionResult Index(HttpPostedFileBase image, int variable)
and form element like that:
variable 1:<input type="text" name="variable" value="1234" />
when I start debugging I am getting following exception:
The parameters dictionary contains a null entry for parameter 'variable' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult Index(System.Web.HttpPostedFileBase, Int32)' in 'Stream.Controllers.HomeController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter. Parameter name: parameters
what is wrong with this?