ROME08 / LoansFinance

Loans Web Application for Bluff Autos
0 stars 0 forks source link

Register Amortization Service #2

Closed ROME08 closed 1 month ago

ROME08 commented 1 month ago

The amortization service is loosely coupled to work with two types of amortization, let's set it up.

ROME08 commented 1 month ago

First registered the Amortization Service to be injected into the controller builder.Services.AddScoped<AmortizationService>();

Second registered the Graduated Amortization Logic class to be injected into the Amortization Service builder.Services.AddScoped<IAmortization, GraduatedAmortization>();