This commit is contained in:
2026-01-23 22:52:51 +01:00
parent e84d6e98c9
commit 668f321c54
51 changed files with 580 additions and 3329 deletions

View File

@@ -6,13 +6,13 @@ using System.Linq;
namespace skydiveLogs_api.DomainBusiness
{
public class StatsByByAircraftService : IStatsByAircraftService
public class StatsByAircraftService : IStatsByAircraftService
{
#region Public Constructors
public StatsByByAircraftService(IJumpService jumpService,
IIdentityService identityService,
IStatsByAircraftRepository statsByAircraftRepository)
public StatsByAircraftService(IJumpService jumpService,
IIdentityService identityService,
IStatsByAircraftRepository statsByAircraftRepository)
{
_jumpService = jumpService;
_identityService = identityService;
@@ -33,11 +33,11 @@ namespace skydiveLogs_api.DomainBusiness
if (allJumps.Any())
{
results = [.. allJumps.GroupBy(j => j.DropZone.Name,
results = [.. allJumps.GroupBy(j => j.Aircraft.Name,
j => j,
(groupby, jumps) => new StatsByAircraft
{
Label = groupby.ToString(),
Aircraft = groupby.ToString(),
Nb = jumps.Count(),
User = _identityService.ConnectedUser
})];