refacts
This commit is contained in:
parent
a84e1d9750
commit
2dcf1a2806
18 changed files with 166 additions and 98 deletions
|
|
@ -6,7 +6,7 @@ using System.Linq;
|
|||
using isnd.ViewModels;
|
||||
using Unleash;
|
||||
using System.Reflection;
|
||||
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace isnd.Controllers
|
||||
{
|
||||
|
|
@ -27,7 +27,10 @@ namespace isnd.Controllers
|
|||
{
|
||||
|
||||
return View(new HomeIndexViewModel{
|
||||
PkgCount = _dbContext.Packages.Count(),
|
||||
PkgCount = _dbContext.Packages
|
||||
.Include(p => p.Versions)
|
||||
.Where(p => p.Versions.Count > 0)
|
||||
.Count(),
|
||||
UnleashClient = _unleashĈlient
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue