I have default constuctor and constructor with params like here:
public class AccountController : ApiController
{
private const string LocalLoginProvider
You should remove the parameterless constructor.
Next, you need to configure a custom dependency resolver, which will basically wrap your Unity container. See http://www.asp.net/web-api/overview/advanced/dependency-injection
After that, make sure that you register all your types. For example, I don't see a registration for ApplicationUserManager
. You are registering UserManager<ApplicationUser, int>
but not ApplicationUserManager
, which is what the IoC container will attempt to resolve.