title: Web Api Controller not found error
body: <p>Not sure what i am missing here. I have Web API controller but when i call the api using  </p>
  
  <pre><code> http://localhost:10843/api/Lookup/GetData
  </code></pre>
  
  <p>I get error  </p>
  
  <pre><code>[HttpException]: The controller for path &amp;#39;/api/Lookup/GetData&amp;#39; was not found or does not implement IController.
  </code></pre>
  
  <p>Here is the implementation. Note that im using Unity for Dependancy Injection so i am assuming IMyService and IMapper will be provided by Unity at run time.</p>
  
  <pre><code>        public class LookupController : ApiController
          {
              IMyService _service = null;
              IMapper _mapper = null;
  
  
              public LookupController(IMyService service, IMapper mapper)
              {
                  _service = service;
                  _mapper = mapper;
              }
  
              public IEnumerable&lt;MyModel&gt; GetData()
              {
                  var result _service.GetData();
                  return _mapper.Map&lt;IEnumerable&lt;MyDodel&gt;&gt;(result);
              }
           }
  
  
  
          public static class WebApiConfig
          {
              public static void Register(HttpConfiguration config)
              {
                  // Web API configuration and services
  
                  // Web API routes
                  config.MapHttpAttributeRoutes();
  
                  config.Routes.MapHttpRoute(
                      name: "DefaultApi",
                      routeTemplate: "api/{controller}/{action}/id",
                      defaults: new { id = RouteParameter.Optional }
                  );
              }
          }
  </code></pre>
  
  <p>Also i wanted to know do i need default constructor?</p>