I am passing this :
<%: Html.ActionLink("Edit", "EditCRMRequest", "CRM", new { Id = item.Id })%>
and I am getting in browser :
http://something.com/CRM/EditCRMRequest?Length=3
with Error Code :
The parameters dictionary contains a null entry for parameter 'Id' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult EditCRMRequest(Int32)' in 'ApricaCRMEvent.Controllers.CRM.CRMController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter. Parameter name: parameters
If I explicitly write this in browser it works fine:
http://something.com/CRM/EditCRMRequest?Id=3