presence/presence_api/ServiceExtensions/ServiceExtensions.cs

17 lines
500 B
C#
Raw Normal View History

2024-11-14 08:01:32 +00:00
using data.Repository;
using domain.UseCase;
public static class ServiceExtensions
{
public static void ConfigurateGroup(this IServiceCollection services)
{
services
.AddScoped<IGroupRepository, SQLGroupRepositoryImpl>()
2024-11-14 08:17:32 +00:00
.AddScoped<GroupUseCase>()
.AddScoped<IUserRepository, SQLUserRepositoryImpl>()
.AddScoped<UserUseCase>()
.AddScoped<IPresenceRepository, SQLPresenceRepositoryImpl>()
.AddScoped<UseCaseGeneratePresence>();
2024-11-14 08:01:32 +00:00
}
}