Remove obsolete ReportModel and DI registration

Removed the deprecated ReportModel class and its List method, along with its registration in the dependency injection setup. This cleanup reflects the migration to EnvelopeReport mediator queries.
This commit is contained in:
2026-04-01 11:18:45 +02:00
parent 3855a8fa1e
commit ab67b3fba2
2 changed files with 0 additions and 16 deletions

View File

@@ -17,7 +17,6 @@ public static class DependencyInjection
services.AddSingleton<TempFiles>(); services.AddSingleton<TempFiles>();
services.AddScoped<PDFBurner>(); services.AddScoped<PDFBurner>();
services.AddScoped<PDFMerger>(); services.AddScoped<PDFMerger>();
services.AddScoped<ReportModel>();
services.AddScoped<MSSQLServer>(); services.AddScoped<MSSQLServer>();
//TODO: Check lifetime of services. They might be singleton or scoped. //TODO: Check lifetime of services. They might be singleton or scoped.

View File

@@ -1,15 +0,0 @@
using EnvelopeGenerator.ServiceHost.Jobs.Infrastructure;
using System.Data;
namespace EnvelopeGenerator.ServiceHost.Jobs;
[Obsolete("Create and use EnvelopeReport mediator queries")]
public class ReportModel(MSSQLServer Database)
{
[Obsolete("Create and use EnvelopeReport mediator queries")]
public DataTable List(int envelopeId)
{
var sql = $"SELECT * FROM VWSIG_ENVELOPE_REPORT WHERE ENVELOPE_ID = {envelopeId}";
return Database.GetDatatable(sql);
}
}