Настройка сервисов в RESTAPI Поставщик.
This commit is contained in:
parent
c3e2a54710
commit
ca1680640e
@ -13,10 +13,21 @@ builder.Services.AddTransient<IPaymentStorage, PaymentStorage>();
|
|||||||
builder.Services.AddTransient<ITransferStorage, TransferStorage>();
|
builder.Services.AddTransient<ITransferStorage, TransferStorage>();
|
||||||
builder.Services.AddTransient<IOperatorStorage, OperatorStorage>();
|
builder.Services.AddTransient<IOperatorStorage, OperatorStorage>();
|
||||||
|
|
||||||
|
builder.Services.AddTransient<ICreditProgramStorage, CreditProgramStorage>();
|
||||||
|
builder.Services.AddTransient<ICurrencyStorage, CurrencyStorage>();
|
||||||
|
builder.Services.AddTransient<ICurrencyPurchaseStorage, CurrencyPurchaseStorage>();
|
||||||
|
builder.Services.AddTransient<IBankOperatorStorage, BankOperatorStorage>();
|
||||||
|
|
||||||
builder.Services.AddTransient<IDealLogic, DealLogic>();
|
builder.Services.AddTransient<IDealLogic, DealLogic>();
|
||||||
builder.Services.AddTransient<IPaymentLogic, PaymentLogic>();
|
builder.Services.AddTransient<IPaymentLogic, PaymentLogic>();
|
||||||
builder.Services.AddTransient<ITransferLogic, TransferLogic>();
|
builder.Services.AddTransient<ITransferLogic, TransferLogic>();
|
||||||
builder.Services.AddTransient<IOperatorLogic, OperatorLogic>();
|
builder.Services.AddTransient<IOperatorLogic, OperatorLogic>();
|
||||||
|
|
||||||
|
builder.Services.AddTransient<IBankOperatorLogic, BankOperatorLogic>();
|
||||||
|
builder.Services.AddTransient<ICurrencyLogic, CurrencyLogic>();
|
||||||
|
builder.Services.AddTransient<ICurrencyPurchaseLogic, CurrencyPurchaseLogic>();
|
||||||
|
builder.Services.AddTransient<ICreditProgramLogic, CreditProgramLogic>();
|
||||||
|
|
||||||
builder.Services.AddControllers();
|
builder.Services.AddControllers();
|
||||||
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
||||||
builder.Services.AddEndpointsApiExplorer();
|
builder.Services.AddEndpointsApiExplorer();
|
||||||
|
Loading…
Reference in New Issue
Block a user