title: Is there a tool for compile time checking of MVC links?
body: <p>I've inherited a kludgy and buggy MVC code base from another developer, and I'm trying to clean it up.  One thing that would be very helpful would be a tool to check, at compile time, for links that don't correspond to action methods in a controller.</p>
  
  <p>For instance, you can write an action method like this:</p>
  
  <pre><code>public ActionResult InsertAccount(string Name)
  </code></pre>
  
  <p>and there could be a link somewhere that looks like this:</p>
  
  <pre><code>/SomeController/InsertAccount?Id=Foo
  </code></pre>
  
  <p>Somewhere along the way, the parameter got changed from "Id" to "Name", and this breaks the link.  If everything were in C#, the compiler would catch it, but because the link is generated from strings, a change like this can't be detected.</p>
  
  <p>Is there any tool that would do this, or guidelines for link construction to preserve name safety, so I can use the compiler to catch this kind of problem?</p>