The following error is returned to me:
The parameters dictionary contains a null entry for parameter 'numerodeserie' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult Equipment (System.String, System.String, Int32, Int32)' in 'SCO.Controllers.EquipmentsController'
The configuration of my MapRoute, I do it this way:
routes.MapRoute(
name: "EquipamentosTrafego",
url: "Equipamentos/{cidadecod}/{contratocod}/Trafego/{filtro}",
defaults: new
{
controller = "Equipamentos",
action = "EquipamentosTrafego"
}
);
And in my View I try to access it this way:
<td align="center">
<div class="list-group-item">
<a href="/Equipamentos/@item.cidadecod/@item.contratocod/Trafego/OFF">
<span class="badge" style="font-size: 18px; background-color:@item.totaleqpson_stts">@item.totaleqpson</span>
</a>
</div>
What's wrong?