How to overload controller methods with same number of arguments in ASP.NET Core Web API?
问题 I'm migrating a full .NET Framework Web API 2 REST project over to ASP.NET Core 2.2 and getting a bit lost in the routing. In Web API 2 I was able to overload routes with the same number of parameters based on the parameter type, e.g. I could have Customer.Get(int ContactId) and Customer.Get(DateTime includeCustomersCreatedSince) and incoming requests would be routed accordingly. I haven't been able to achieve the same thing in .NET Core, I either get a 405 error or a 404 and this error