This is a very simple task with controls in asp.net, but I don't know how to do this in MVC. I have a page where I want the user to enter the identifier of his employee. If employeeid is in the database, I want to remove the login and show the survey to fill out. If employeeid is not in the database, I want to show them a form to collect information about their employees. After they submitted their information, I want to show them a survey.
They can fill out several surveys, so I would like the survey to be sent to the same page with the ability to create a new survey or edit what they previously did. Every time they come to this page and type in the identifier of their employee, I want to show them a list of my previous polls with the possibility of creating a new one.
How to do it in MVC? Create a view and use partial data for the survey and registration form? I'm not sure how MVC handles this scenario best.
source share