asp.net mvc - How to modify MVC 4 Routing Table for Different Users? -


i new asp mvc, , need setup routes. building site has 2 types of users (seller & buyers). depending on user logs in, want system take them appropriate controller , action method.

there no need have different routing different user types.

simply define route each user type (/seller, /buyer) , redirect them accordingly.

for security measure, might want add authorization attribute , specify role user in appropriate roles can access section.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -