I\'m trying to do something different. I have a view that contains an Id. Based on the value of the Id I want to change my heading that appears. Something like:
@{ String txt; switch (id) { case "test": txt = "Test"; break; case "prod": txt = "Prod"; break; default: txt = "WTF"; } } @txt Site
The Most Concise: Less redundant or repetitive code and markup.