'asp.net core 3.1 change route
Is there an easy way to change the route of asp.net core 3.1 controller ?
Currently I have controller PicVideosController URL: ...\picvideos... and I was asked to modify the url to ...\picturesvideos...
I added a route on the controller side :
[Route("picturesvideos")]
public class PicVideosController : Controller
get an error AmbiguousMatchException: The request matched multiple endpoints. Matches: Main.Controllers.PicVideosController.Pay (Main) Main.Controllers.PicVideosController.Completed (Main) still seems like it is looking at the original url
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
