Using Unity with Web Api 2 gives error does not have a default constructor
<p>I have ASP.NET MVC5 web application and i also have Web API in the same application. I am uisng Unity (version 4) for DI.
I am configuring the Unity container on APP start as below</p>

<pre><code>        public class MvcApplication : System.Web.HttpApplication
        {
            protected void Application_Start()
            {
                UnityConfiguration.Config();
            }
        }

        public class UnityConfiguration()
        {
         public void Config()
         {
                UnityContainer container = new UnityContainer();
                container.RegisterType&lt;IMyService, Myservice&gt;();
                container.RegisterType&lt;IGenericRepository, GenericRepository&gt;();
                container.RegisterType&lt;DbContext, MyEntities&gt;();            
         }
        }

        public class GenericRepository:IGenericRepository
        {
           private DbContext _dbcontext;
           public GenericRepository(DbContext dbcontext)
           {
               _dbcontext = dbcontext;
           }
        }
        public class MyService:IMyService
        {
           private IGenericRepository _repo;
           publi void MyService(IGenericRepository repository)
           {
              _repo = repository;
           }
        }


        public class MyApiController:ApiController
        {
           provate IMyService _service;
           MyApiController(IMyService myservice)
           {
              _service = myservice;
           }

           public IEnumerable&lt;MyModel&gt; GetData()
           {
             var result = _service.GetData();
             return result.ConvertToMyModel();
           }
        }
</code></pre>

<p>However when i call the url like </p>

<pre><code>localhost://lookup/getdata
</code></pre>

<p>I get error </p>

<blockquote>
  <p>Type 'LookupController' does not have a default constructor</p>
</blockquote>

<p>How do i solve this issue? Do i need to register each controller i create with Unity or Unity automatically registers all MVC controllers?</p>