Add comments by AI
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user