Hi @Dan ,
Change your route template like below, and the request url should be https://localhost:portNumber/Home/Index/YourequityID
:
endpoints.MapControllerRoute(
name: "getById",
pattern: "{controller}/{action}/{equityID:alpha}");
Note:
Your providing code contains empty space( pattern: "{controller}/{ equityID:alpha}",
), be sure there is no empty space before equityID:alpha
.
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
Rena