ASP.NET MVC 6 Dependency Injection
<p>I have the code,</p>

<pre><code>public class VendorManagementController : Controller
{
    private readonly IVendorRespository _vendorRespository;

    public VendorManagementController()
    {
        _vendorRespository = new VendorRespository();
    }
</code></pre>

<p>Now I want to use dependency injection. So the code will be</p>

<pre><code>public class VendorManagementController : Controller
{
    private readonly IVendorRespository _vendorRespository;

    public VendorManagementController(IVendorRespository vendorRespositor)
    {
        _vendorRespository = vendorRespositor;
    }
</code></pre>

<p>My question is that I do not find the place where I can create <code>VendorRespository</code> object and how I can pass it to the <code>VendorManagementController</code> with defined parameterized <code>VendorManagementController(IVendorRespository vendorRespositor)</code> constructor?</p>