domBudg/back/Controllers/Extensions/AddReposExt.cs

17 lines
535 B
C#

using Contracts.Repositories;
using Contracts.Services;
using Infrastructure.Repositories;
using Services.Domain;
namespace Controllers.Extensions;
public static class AddReposExtension
{
public static void AddRepos(this IServiceCollection services)
{
services.AddTransient<IUserRepo, UserRepo>();
services.AddTransient<ISpendingGroupRepo, SpendingGroupRepo>();
services.AddTransient<IChangeRecordRepo, ChangeRecordRepo>();
services.AddTransient<ISpendingPlanRepo, SpendingPlanRepo>();
}
}