I have a program where the user can register and log in, when the user is logged in, he gets a welcome message with his name and a question with two radio buttons. When the user select one of the radio buttons, I want him to be redirected to another razor view that shows a table with some information, and if he selects the other radio button, I want him to be redirected to another razor view that shows another table and in both of the tables he should be able to add different things to it using the database I’ve connected to it.
I am very new to programming overall, but I know the basics. My first question is, what do I need to accomplish to do this? What is the first thing I would need to do? I was thinking that I should make an if statement but it does not seem to work. I have created the radio buttons in the .cshtml. I have created one of the tables already in a separate controller with views. But how do I make that show based on which button the user chose?
I hope my question was clear. Thank you.