【发布时间】:2017-06-16 14:54:45
【问题描述】:
我正在将我的项目与另一个项目集成
Multiple types were found that match the controller named 'XXXXX'.
This can happen if the route that services this request ('api/{controller}/{action}/{id}') found multiple controllers defined with the same name but differing namespaces, which is not supported.
The request for 'XXXXX' has found the following matching controllers:
COM.example.host.XXXXXController
COM.example.parasite.XXXXXController
有没有办法让这一切以最少的编辑量从任何一方工作?
我希望避免对我的所有控制器进行修改。
谢谢
【问题讨论】:
-
要么合并到同一个类,要么改名,要么改路由。