WebAPI2 and MVC5 route config
问题 I have coded a C# ASP.net MVC5 internet application that works well and I can do CRUD operations using a Person model. I have added a WebAPI2 controller that uses the entity framework but am getting errors when trying to browse to any of the WebAPI controller methods. The WebAPI2 controller is called PersonAPIController . The Getpeople method has the // GET api/PersonAPI comment above the method, yet when browsing to this method, I am getting this error: The resource cannot be found. Is this