I'm creating a site in MVC4, which is the first time I've use MVC in .NET, I've sussed out the logging in and registration. I have this scenario:
The website has Role 'A' and Role 'B', when a user hasn't registered before I want to direct them to the registration page, when they click on the Register section on their specific section, I direct them to the registration page. However I want the registration page to automatically define their role, based on which Registration button they clicked.
So a user clicks button 'A' when they register they will be assigned Role 'A', and when Agent 'B' registers they are automatically assigned Role 'B'. I want to avoid get variables to stop people overriding the selection.