Add comments by AI

This commit is contained in:
2026-04-10 14:35:30 +02:00
parent faa4709aea
commit 4fc0065841
7 changed files with 88 additions and 16 deletions
@@ -1,8 +1,8 @@
using skydiveLogs_api.Domain;
using System.Collections.Generic;
using System.Linq;
using skydiveLogs_api.Domain;
using skydiveLogs_api.DomainBusiness.Interfaces;
using skydiveLogs_api.DomainService.Repositories;
using System.Collections.Generic;
using System.Linq;
namespace skydiveLogs_api.DomainBusiness
{
@@ -23,6 +23,10 @@ namespace skydiveLogs_api.DomainBusiness
#region Public Methods
/// <summary>
/// Retrieves statistics grouped by aircraft.
/// </summary>
/// <returns>A collection of StatsByAircraft entities containing the statistics.</returns>
public IEnumerable<StatsByAircraft> GetStats()
{
var allStats = _statsByAircraftRepository.GetAll(_identityService.ConnectedUser);
@@ -50,6 +54,9 @@ namespace skydiveLogs_api.DomainBusiness
return allStats;
}
/// <summary>
/// Resets the aircraft statistics.
/// </summary>
public void Reset()
{
_statsByAircraftRepository.Delete(_identityService.ConnectedUser);
@@ -65,4 +72,4 @@ namespace skydiveLogs_api.DomainBusiness
#endregion Private Fields
}
}
}