Use T4MVC to Remove Magic Strings in ASP.NET MVC Apps

ASP.NET MVC has a fascination with magic strings. Basically any time you need to specify an action, a view, or controller, you use a magic string: return RedirectToAction("Index", "Home", new { id = 4 }); return View("Details"); @Html.ActionLink("Back to details", "Detals", "User", new {id = 12}, new [email protected] = "backlink"}); @using(Html.BeginForm("Details", "User", FormMethod.Post)) This makes the code really easy to read, of course. But those magic strings, by themselves, don't really mean anything. And they certainly... Read more >