Closed mdmoura closed 7 years ago
Seems that an empty HttpGet attribute does not set the AttributeRouteModel property of the Selector model. I don't know if this is intended by ASPNET or a bug. I'll try to find out more about this.
Use HttpGet("") in the meantime.
So the answer from the MVC team:
This is (sadly) by design. An [HttpGet] without a string means conventional routing.
Since RouteLocalization is based on AttributeRouting it's mandatory to use [HttpGet("")].
Do you plan to also use conventional routing?
I am planning to use only AttributeRouting so I think it will be fine.
I will post if I find some other problem ...
I am using RouteLocalization with ASP.NET Core 2.0 and I have the following controller:
And on Startup I have the following configuration:
But I get the following error when I start the site: ActionModels with AttributeRoutes was expected
What am I missing?