ASP.NET MVC Controller parameter processing

Posted by Leonardo on Stack Overflow See other posts from Stack Overflow or by Leonardo
Published on 2010-04-03T06:47:59Z Indexed on 2010/04/03 6:53 UTC
Read the original article Hit count: 336

Filed under:
|
|
|
|

In my application I have a string parameter called "shop" that is required in all controllers, but it needs to be transformed using code like this:

        shop = shop.Replace("-", " ").ToLower();

How can I do this globally for all controllers without repeating this line in over and over? Thanks, Leo

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc