{"action":"opened","issue":{"url":"https://api.github.com/repos/Daniel15/RouteJs/issues/61","repository_url":"https://api.github.com/repos/Daniel15/RouteJs","labels_url":"https://api.github.com/repos/Daniel15/RouteJs/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/Daniel15/RouteJs/issues/61/comments","events_url":"https://api.github.com/repos/Daniel15/RouteJs/issues/61/events","html_url":"https://github.com/Daniel15/RouteJs/issues/61","id":295979397,"number":61,"title":"No route could be matched to route values: [object Object]","user":{"login":"barbedCoil","id":3519180,"avatar_url":"https://avatars3.githubusercontent.com/u/3519180?v=4","gravatar_id":"","url":"https://api.github.com/users/barbedCoil","html_url":"https://github.com/barbedCoil","followers_url":"https://api.github.com/users/barbedCoil/followers","following_url":"https://api.github.com/users/barbedCoil/following{/other_user}","gists_url":"https://api.github.com/users/barbedCoil/gists{/gist_id}","starred_url":"https://api.github.com/users/barbedCoil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbedCoil/subscriptions","organizations_url":"https://api.github.com/users/barbedCoil/orgs","repos_url":"https://api.github.com/users/barbedCoil/repos","events_url":"https://api.github.com/users/barbedCoil/events{/privacy}","received_events_url":"https://api.github.com/users/barbedCoil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-09T19:08:59Z","updated_at":"2018-02-09T19:08:59Z","closed_at":null,"author_association":"NONE","body":"* Asp.Net Core v2.x with Platform .Net 4.7\r\n* Visual Studio 2017 15.5.6\r\n* RouteJs.AspNet 2.2.0\r\n\r\nI am using Attribute routing in my controller.  When the attribute matches the IActionResult function name then all works well as follows:\r\n\r\n    [HttpGet(\"TestExcel\")]\r\n    public IActionResult TestExcel()\r\n    {\r\n         ...\r\n    )\r\n\r\nWhen the attribute does **not** match the IActionResult function name then routing fails every time:\r\n\r\n    [HttpGet(\"TestExcel\")]\r\n    public IActionResult TestExcelNew()\r\n    {\r\n         ...\r\n    )\r\n\r\nHere is the simple js which is just my own route class I use in all my js, all other routes work except for the above conditions:\r\n\r\n    static TestEPPLus()\r\n    {\r\n        return Router.action('Home', 'TestEPPlus');\r\n    }\r\n\r\nWhen my code makes the ajax call using the above Router.action it gives this message:\r\n\r\nError​columnNumber: 10​\r\n    fileName: \"http://localhost/CoreTest/_routejs/3c4b18a6dee39a5732c312c9dffa798f24cb66bf\"\r\n    ​lineNumber: 314\r\n    ​message: \"No route could be matched to route values: [object Object]\"​\r\n    stack: \"route@http://localhost/CoreTest/_routejs/3c4b18a6dee39a5732c312c9dffa798f24cb66bf:314:10\r\n    action@http://localhost/CoreTest/_routejs/3c4b18a6dee39a5732c312c9dffa798f24cb66bf:299:11\r\n\r\n**Only when the Route attribute do NOT match the IActionResult function in the controller**\r\n\r\n"}}
{"actor":{"display_login":"barbedCoil"}}