23 lines
710 B
C#
23 lines
710 B
C#
using Demo.Data.Repository;
|
|
using Demo.Domain.UseCase;
|
|
|
|
public static class ServiceExtencions
|
|
{
|
|
public static void AddGroupServices(this IServiceCollection services)
|
|
{
|
|
services.AddScoped<IGroupRepository, SQLGroupRepositoryImpl>()
|
|
.AddScoped<GroupUseCase>();
|
|
}
|
|
|
|
public static void AddUserServices(this IServiceCollection services)
|
|
{
|
|
services.AddScoped<IUserRepository, SQLUserRepositoryImpl>()
|
|
.AddScoped<UserUseCase>();
|
|
}
|
|
|
|
public static void AddPresenceServices(this IServiceCollection services)
|
|
{
|
|
services.AddScoped<IPresenceRepository, SQLPresenceRepositoryImpl>()
|
|
.AddScoped<PresenceUseCase>();
|
|
}
|
|
} |