Matt Payne Consulting

Avatar

Everything is possible

Articles tagged with 'T4MVC'

Sick of Hard Coding Strings in Your MVC App?

This may not be news to anyone, but there's a cool utility project out there for MVC that allows you to avoid hard coding strings in your app.

For example, how many times have you written something like:

public ActionResult DoSomething()
{
 //Do some work
 return RedirectToAction("Home");
}

All the time, right? It's a pretty common approach. But wouldn't it be nice if you didn't ...