refatco and cleanup

This commit is contained in:
Paul Schneider 2026-07-05 17:54:36 +01:00
commit 4d51267dfd
66 changed files with 32 additions and 1619 deletions

View file

@ -2,7 +2,6 @@
using isnd.Data;
using System.Linq;
using isnd.ViewModels;
using Unleash;
using System.Reflection;
using Isn.Abstract;
@ -14,19 +13,15 @@ namespace isnd.Controllers
public class HomeController : Controller
{
private readonly ApplicationDbContext _dbContext;
private readonly IUnleash _unleashClient;
/// <summary>
/// Home controller ctor
/// </summary>
/// <param name="dbContext"></param>
/// <param name="unleashClient"></param>
public HomeController(
ApplicationDbContext dbContext,
IUnleash unleashClient)
ApplicationDbContext dbContext)
{
_dbContext = dbContext;
_unleashClient = unleashClient;
}
/**
@ -38,8 +33,7 @@ namespace isnd.Controllers
{
PkgCount = _dbContext.Packages
.Where(p => p.Versions.Count > 0)
.Count(),
UnleashClient = _unleashClient
.Count()
});
}