Add comments by AI

This commit is contained in:
2026-04-10 19:50:11 +02:00
parent d2869cf4bb
commit 86e50c35ab
8 changed files with 160 additions and 12 deletions
@@ -23,6 +23,10 @@ namespace skydiveLogs_api.DomainBusiness
#region Public Methods
/// <summary>
/// Retrieves statistics grouped by year.
/// </summary>
/// <returns>A collection of StatsByYear entities containing the statistics.</returns>
public IEnumerable<StatsByYear> GetStats()
{
var allStats = _statsByYearRepository.GetAll(_identityService.ConnectedUser);
@@ -50,6 +54,9 @@ namespace skydiveLogs_api.DomainBusiness
return allStats;
}
/// <summary>
/// Resets the year statistics.
/// </summary>
public void Reset()
{
_statsByYearRepository.Delete(_identityService.ConnectedUser);
@@ -65,4 +72,4 @@ namespace skydiveLogs_api.DomainBusiness
#endregion Private Fields
}
}
}