Closed ROME08 closed 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>();
The amortization service is loosely coupled to work with two types of amortization, let's set it up.