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
Post a Comment