La page des stats avance, on a maintenant

des infos
This commit is contained in:
Sébastien André
2020-01-30 17:42:02 +01:00
parent 72f0b13f34
commit 1d470dc084
4 changed files with 97 additions and 25 deletions

View File

@@ -19,7 +19,7 @@ namespace skydiveLogs_api.Business
{
var allJumps = _jumpRepository.GetAll();
return allJumps.GroupBy(j => j.Aircraft.Id,
return allJumps.GroupBy(j => j.Aircraft.Name,
j => j,
(groupby, jumps) => new Statistic
{
@@ -33,7 +33,7 @@ namespace skydiveLogs_api.Business
{
var allJumps = _jumpRepository.GetAll();
return allJumps.GroupBy(j => j.DropZone.Id,
return allJumps.GroupBy(j => j.DropZone.Name,
j => j,
(groupby, jumps) => new Statistic
{
@@ -47,7 +47,7 @@ namespace skydiveLogs_api.Business
{
var allJumps = _jumpRepository.GetAll();
return allJumps.GroupBy(j => j.JumpType.Id,
return allJumps.GroupBy(j => j.JumpType.Name,
j => j,
(groupby, jumps) => new Statistic
{
@@ -61,7 +61,7 @@ namespace skydiveLogs_api.Business
{
var allJumps = _jumpRepository.GetAll();
return allJumps.GroupBy(j => j.Gear.Id,
return allJumps.GroupBy(j => j.Gear.Name,
j => j,
(groupby, jumps) => new Statistic
{