title: Getting 404 when trying to hit the WebAPI controller method
body: <p>I have created a project using ASP.NET Core Web Application (.NET Framework). My project structure:</p>
  
  <p><a href="https://i.stack.imgur.com/DdFug.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DdFug.png" alt="Project Structure"></a></p>
  
  <p>My values controller is inherited from an MVC controller. When I hit <a href="http://localhost:20798/api/values" rel="nofollow noreferrer">http://localhost:20798/api/values</a>, I do get the desired response.
  <a href="https://i.stack.imgur.com/9oFo1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9oFo1.png" alt="Values Controller"></a></p>
  
  <p>I added ConsumerScore controller, this time a WebAPI controller inheriting from <code>ApiController</code>. But now when I hit <a href="http://localhost:20798/api/consumerscore" rel="nofollow noreferrer">http://localhost:20798/api/consumerscore</a>, I am getting 404 response. <a href="https://i.stack.imgur.com/H4PvQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H4PvQ.png" alt="Error Response"></a></p>
  
  <p>My <code>ConsumerScore</code> controller looks like:
  <a href="https://i.stack.imgur.com/FTSK1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FTSK1.png" alt="ConsumerScore controller"></a></p>
  
  <p>How to resolve this error?</p>