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 for the last month grouped by drop zone.
/// </summary>
/// <returns>A collection of StatsForLastMonthByDz entities containing the statistics.</returns>
public IEnumerable<StatsForLastMonthByDz> GetStats()
{
var allStats = _statsForLastMonthByDzRepository.GetAll(_identityService.ConnectedUser);
@@ -55,6 +59,9 @@ namespace skydiveLogs_api.DomainBusiness
return allStats;
}
/// <summary>
/// Resets the last month drop zone statistics.
/// </summary>
public void Reset()
{
_statsForLastMonthByDzRepository.Delete(_identityService.ConnectedUser);
@@ -70,4 +77,4 @@ namespace skydiveLogs_api.DomainBusiness
#endregion Private Fields
}
}
}