Passing value with Razor Engine one a SPA

Have a SPA and I want to open a page to pass a value to a controller.

Route Controller:

 $routeProvider.when('//:id',
                        {
                        templateUrl: 'Data/ShowData',
                        });

View

    <tbody>

        @foreach (var item in Model)
        {
            <tr>
            <td style="text-align:center"><a href="">100</a></td>
            </tr>
        }

    </tbody>

Controller

public ActionResult ShowGraphs(int id){
        System.Diagnostics.Debug.WriteLine("id " + id);
    }

This is not working...

And this is not working too

<td style="text-align:center"><a  href=''>100</a></td>

<td>@Html.ActionLink(@item.id, "", new { id= @item.id})</td>

Only this works

<td style="text-align:center"><a href="">100</a></td>

when Route Controller is

 $routeProvider.when('/',
                        {
                        templateUrl: 'Data/ShowData',
                        });


ANSWERS:


View

    @foreach (var item in Model)
    {
        <tr>
        <td style="text-align:center"><a href="">100</a></td>
        </tr>
    }

</tbody>

Route

$routeProvider.when('//:id',
                        {
                         templateUrl: function (params) { return '/Data/ShowData?id=' + params.id; },
                        });

Controller

public ActionResult ShowGraphs(){
       Uri uri = new Uri(this.Request.Url.AbsoluteUri);
       //parse for query
    }


 MORE:


 ? Are additional settings required for AngularJS routing to work in asp.net Web Application (Not MVC)?
 ? Bootstrap.navbar + Angular.routeProvider not working also not giving any error in chrome
 ? Angular $location search does not work always
 ? Can we pass two parameters in $routeProvider.when() function in angular js
 ? Angular 1.x/2 Hybrid, karma tests not bootstrapping ng1 app
 ? Node server to intercept all request from angular (http) to java spring backend
 ? Angular change url without executing routeprovider
 ? Angular js - call a route without view
 ? .config $routeprovider angularjs
 ? Angular JS not loading view