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 and jump type.
|
||||
/// </summary>
|
||||
/// <returns>A collection of StatsByYearByJumpType entities containing the statistics.</returns>
|
||||
public IEnumerable<StatsByYearByJumpType> GetStats()
|
||||
{
|
||||
var allStats = _statsByYearByJumpTypeRepository.GetAll(_identityService.ConnectedUser);
|
||||
@@ -51,6 +55,9 @@ namespace skydiveLogs_api.DomainBusiness
|
||||
return allStats;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Resets the last year by jump type statistics.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_statsByYearByJumpTypeRepository.Delete(_identityService.ConnectedUser);
|
||||
@@ -66,4 +73,4 @@ namespace skydiveLogs_api.DomainBusiness
|
||||
|
||||
#endregion Private Fields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user