To use the URL files / id format, remove the overload without the Index parameters and first add this custom route so that it is evaluated to the default route:
routes.MapRoute( "Files", "Files/{id}", new { controller = "Files", action = "Index" } );
See MVC trace overview MVC for the basics of mapping URLs to controller methods and ScottGu's excellent URL routing , which has a few examples very close to what you want to do.
source share