Update SurveyLib and moved all AddScoped to DI methods

This commit is contained in:
Вячеслав 2025-05-31 01:32:50 +05:00
parent d73e0a104f
commit 7ccf8cb018
4 changed files with 49 additions and 20 deletions

View file

@ -0,0 +1,16 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using SurveyBackend.Core.Repositories;
using SurveyBackend.Infrastructure.Repositories;
namespace SurveyBackend.Infrastructure;
public static class DependencyInjection
{
public static IServiceCollection AddSurveyBackendInfrastructure(this IServiceCollection services)
{
services.AddScoped<IUserRepository, UserRepository>();
return services;
}
}