Add comments by AI
This commit is contained in:
@@ -23,6 +23,10 @@ namespace skydiveLogs_api.DomainBusiness
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves statistics for the last year grouped by drop zone.
|
||||
/// </summary>
|
||||
/// <returns>A collection of StatsForLastYearByDz entities containing the statistics.</returns>
|
||||
public IEnumerable<StatsForLastYearByDz> GetStats()
|
||||
{
|
||||
var allStats = _statsForLastYearByDzRepository.GetAll(_identityService.ConnectedUser);
|
||||
@@ -54,6 +58,9 @@ namespace skydiveLogs_api.DomainBusiness
|
||||
return allStats;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Resets the last year drop zone statistics.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_statsForLastYearByDzRepository.Delete(_identityService.ConnectedUser);
|
||||
@@ -69,4 +76,4 @@ namespace skydiveLogs_api.DomainBusiness
|
||||
|
||||
#endregion Private Fields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user