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
The scope of the accounttype is limited to the if statement. Do
string accounttype; if (programid == 0) { accounttype = "Membership"; } else { accounttype = "Program"; }