ASP.NET Core. How to use with n-tier architecture?
<p>I'd like to use n-tier architecture with ASP.NET Core WebApi project. I defined some Repository with Interface in DAL layer (Class Library project). Then I'm trying to inject this by using IServiceCollection this way:<br /></p>

<pre><code>       public void ConfigureServices(IServiceCollection services)
        {
            // Add framework services.
            services.AddMvc();
            services.AddScoped&lt;IUsersRepository, UsersRepository&gt;();
        }
</code></pre>

<p>But this cannot be resolved. What I'm doing wrong here?</p>