This is probably really basic in C#, but I looked around a lot to find a solution.
In my MVC controller\'s action method, I have an incoming routeid (programid
programid
Your scoping is incorrect, try this:
string accounttype; if (programid == 0) { accounttype = "Membership"; } else { accounttype = "Program"; }