If I put @Model.JamesID
above this line, it outputs 26
...
If I put it as below, the url has Length=4 added to it? Why is this?
<li>@Html.ActionLink("James's list", "JamesList", "James", new { jamesID = @Model.JamesID })</li>
The controller is as so:
public ViewResult JamesList(int jamesID)
{
James james = jamesRepository.GetByID(jamesID);
return View(james);
}