I have an area called Suppliers, with a controller called supplier.
I want to route urls such as ~/{SupplierName}. ie root/supplier1
I want to handle these requests in my supplier controller index action.
How do I set up the route config for this?
I have an area called Suppliers, with a controller called supplier.
I want to route urls such as ~/{SupplierName}. ie root/supplier1
I want to handle these requests in my supplier controller index action.
How do I set up the route config for this?
Copyright © 2021 Jogjafile Inc.
ASP.NET 5, MVC 6
You could try an action route....
I would recommend /suppliers/{SupplierName} to avoid any conflicts.
OR via Startup.cs (just adapt the below):
Hope this helps. Dan.