Add comments by AI
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
using skydiveLogs_api.Domain;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using skydiveLogs_api.Domain;
|
||||
using skydiveLogs_api.DomainBusiness.Interfaces;
|
||||
using skydiveLogs_api.DomainService.Repositories;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace skydiveLogs_api.DomainBusiness
|
||||
{
|
||||
@@ -23,6 +23,10 @@ namespace skydiveLogs_api.DomainBusiness
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves statistics grouped by gear.
|
||||
/// </summary>
|
||||
/// <returns>A collection of StatsByGear entities containing the statistics.</returns>
|
||||
public IEnumerable<StatsByGear> GetStats()
|
||||
{
|
||||
var allStats = _statsByGearRepository.GetAll(_identityService.ConnectedUser);
|
||||
@@ -50,6 +54,9 @@ namespace skydiveLogs_api.DomainBusiness
|
||||
return allStats;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Resets the gear statistics.
|
||||
/// </summary>
|
||||
public void Reset()
|
||||
{
|
||||
_statsByGearRepository.Delete(_identityService.ConnectedUser);
|
||||
@@ -65,4 +72,4 @@ namespace skydiveLogs_api.DomainBusiness
|
||||
|
||||
#endregion Private Fields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user