我为我的整个项目重命名了我的命名空间。一切仍然正常,但我的 WebAPI 现在正在为我的控制器找到两条路由。
Multiple types were found that match the controller named 'department'.
This can happen if the route that services this request ('api/{controller}/{id}') found multiple controllers defined with the same name but differing namespaces, which is not supported.
The request for 'department' has found the following matching controllers:
A***.P***.Benutzerverwaltung.Jo***MVC.Controllers.DepartmentController
A***.Benutzerverwaltung.API.Controllers.DepartmentController
所以我将第一个命名空间重命名为第二个,我到处搜索旧的命名空间,但什么也没找到。那么,我能做些什么呢?
感谢帮助。