I have a large ASP.NET MVC 5 application, and now I want to implement Web API for it. But I want to put ApiControllers in a separate project.
I have problem with organizing routes for the Web API:
I want my main application Routes by
I found the solution:
For ApiControllers it is not necessary to reimplement Factories.
In project Web (main), we need:
Add dependency to project with ApiControllers
Edit Global.asax this way
to enable Attribute Routing.
Now the Web API engine can find all ApiControllers in the Scope.