CreateAtRoute 报错 No Route match
来源:7-2 【应用】创建旅游路线资源

weixin_慕神0456803
2022-04-11
CreateAtRoute 报错 No route matches the supplied values
我已经在get by id 方法中 name了一个名字 为什么还说我找不到route?
写回答
2回答
-
孔令瑞
2022-09-16
您好,有可能是查询方法参数touristRouteId命名未在return CreateAtRoute中进行指定,如果CreateAtRoute返回第二个参数routeValue为 new { touristRouteToReturn.Id }则会出错,但是routeValue为new { touristRouteId = touristRouteToReturn.Id }则会正确返回预期结果
112023-04-03 -
阿莱克斯刘
2022-04-17
hello 同学你好,可以截图给我看一下你的代码吗?
00
相似问题