refatco and cleanup
This commit is contained in:
parent
94eb8e2fff
commit
4d51267dfd
66 changed files with 32 additions and 1619 deletions
|
|
@ -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()
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue