tags:

views:

48

answers:

1

My Controller Action accepts int id. What to do when calling from View ActionLink with string id?

+1  A: 

The MVC binding infrastructure will convert the string to an int before invoking your controller action method (and throw an exception if conversion fails).

DSO