I have one actionlink inside the `foreach` loop. Depending on the model items I am generating link buttons with values dynamically.
This is how it looks

```
@foreach (var group in Model.records)
{
    <tr>
        <td>@Html.ActionLink(@group.clientId.ToString(), "detailsbyClientId", "DocumentVerification", new { id = @group.clientId.ToString()},null)</td>
        <td>@group.clientName</td>
        <td>@group.Count</td>
    </tr>
}

```

On clicking link button i am calling partial view as below.

```
[HttpGet]
public PartialViewResult detailsbyClientId(int? clientId)
{
    return PartialView();
}

```

I am receiving a `null` value for `clientId` but `@group.clientId.ToString()` contains a valid value.