Remove Route annotation from an action in ASP.NET Core 8 #57159
Unanswered
DotCat1985
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my ASP.NET Core 8 project, I added a reference to a nuget package containing the following controller:
How can I dynamically remove the data annotation
[Route("cart")]
from theIndex
action?I would like remove this action with a code written inside the
Startup.cs
of ASP.NET Core 8 project, so I can remap this action usingroute.MapAreaControllerRoute()
insideStartup.cs
.Beta Was this translation helpful? Give feedback.
All reactions