blob: 952ed99d54b853b8c8588380eace7994370fb4de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
using DevHive.Data.Interfaces;
using DevHive.Data.Models;
using DevHive.Data.Repositories;
using DevHive.Services.Interfaces;
using DevHive.Services.Services;
using Microsoft.Extensions.DependencyInjection;
namespace DevHive.Web.Configurations.Extensions
{
public static class ConfigureDependencyInjection
{
public static void DependencyInjectionConfiguration(this IServiceCollection services)
{
services.AddScoped<ILanguageRepository, LanguageRepository>();
services.AddScoped<IRoleRepository, RoleRepository>();
services.AddScoped<ITechnologyRepository, TechnologyRepository>();
services.AddScoped<IUserRepository, UserRepository>();
services.AddScoped<IPostRepository, PostRepository>();
services.AddScoped<ILanguageService, LanguageService>();
services.AddScoped<IRoleService, RoleService>();
services.AddScoped<ITechnologyService, TechnologyService>();
services.AddScoped<IUserService, UserService>();
services.AddScoped<IPostService, PostService>();
}
}
}
|