17 lines
500 B
C#
17 lines
500 B
C#
using data.Repository;
|
|
using domain.UseCase;
|
|
|
|
public static class ServiceExtensions
|
|
{
|
|
public static void ConfigurateGroup(this IServiceCollection services)
|
|
{
|
|
services
|
|
.AddScoped<IGroupRepository, SQLGroupRepositoryImpl>()
|
|
.AddScoped<GroupUseCase>()
|
|
.AddScoped<IUserRepository, SQLUserRepositoryImpl>()
|
|
.AddScoped<UserUseCase>()
|
|
.AddScoped<IPresenceRepository, SQLPresenceRepositoryImpl>()
|
|
.AddScoped<UseCaseGeneratePresence>();
|
|
|
|
}
|
|
} |