Routing in MVC 6
问题 I have a super simple controller with 2 methods: public IActionResult Users(long id) { return Json(new { name = "Example User" }); } public IActionResult Users() { return Json(new { list = new List<User>() }); } One to select all users and the other to return all users. In web api 2 I could user the following route and everything worked fine: config.Routes.MapHttpRoute( name: "Users", routeTemplate: "v1/Users", defaults: new { action = "Users", controller = "Users" }, constraints: null,