diff --git a/Back/skydiveLogs-api.DomainBusiness/JumpTypeService.cs b/Back/skydiveLogs-api.DomainBusiness/JumpTypeService.cs
index ca4329c..63bd568 100644
--- a/Back/skydiveLogs-api.DomainBusiness/JumpTypeService.cs
+++ b/Back/skydiveLogs-api.DomainBusiness/JumpTypeService.cs
@@ -22,17 +22,29 @@ namespace skydiveLogs_api.DomainBusiness
#region Public Methods
+ ///
+ /// Adds a new jump type to the system.
+ ///
+ /// The JumpType entity containing the new jump type data.
public void AddNewJumpType(JumpType newJumpType)
{
_jumpTypeRepository.Add(newJumpType);
_cacheService.Delete(CacheType.JumpType);
}
+ ///
+ /// Deletes a jump type by its ID.
+ ///
+ /// The jump type ID to delete.
public void DeleteJumpTypeById(int id)
{
throw new NotImplementedException();
}
+ ///
+ /// Retrieves all jump types.
+ ///
+ /// A collection of JumpType entities containing all jump types.
public IEnumerable GetAllJumpTypes()
{
if (!_cacheService.Contains(CacheType.JumpType))
@@ -43,17 +55,33 @@ namespace skydiveLogs_api.DomainBusiness
return _cacheService.Get>(CacheType.JumpType);
}
+ ///
+ /// Retrieves jump types specifically used for tunnel operations.
+ ///
+ /// A collection of JumpType entities containing tunnel jump types.
public IEnumerable GetJumpTypesForTunnel()
{
return GetAllJumpTypes().Where(t => t.InTunnel);
}
+ ///
+ /// Retrieves a jump type by its ID.
+ ///
+ /// The jump type ID to retrieve.
+ /// A JumpType entity containing the jump type details.
public JumpType GetJumpTypeById(int id)
{
var allJumpTypes = GetAllJumpTypes();
return allJumpTypes.Single(g => g.Id == id);
}
+ ///
+ /// Updates an existing jump type.
+ ///
+ /// The jump type ID to update.
+ /// JumpType entity containing the updated jump type data.
+ /// Whether to reset the cache after update.
+ /// True if the update was successful, false otherwise.
public bool UpdateJumpType(int id, JumpType jumpType, bool resetCache = true)
{
jumpType.Id = id;
@@ -74,4 +102,4 @@ namespace skydiveLogs_api.DomainBusiness
#endregion Private Fields
}
-}
\ No newline at end of file
+}
diff --git a/Back/skydiveLogs-api.DomainBusiness/StatsByAircraftService.cs b/Back/skydiveLogs-api.DomainBusiness/StatsByAircraftService.cs
index 2815abd..3bf4a27 100644
--- a/Back/skydiveLogs-api.DomainBusiness/StatsByAircraftService.cs
+++ b/Back/skydiveLogs-api.DomainBusiness/StatsByAircraftService.cs
@@ -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
+ ///
+ /// Retrieves statistics grouped by aircraft.
+ ///
+ /// A collection of StatsByAircraft entities containing the statistics.
public IEnumerable GetStats()
{
var allStats = _statsByAircraftRepository.GetAll(_identityService.ConnectedUser);
@@ -50,6 +54,9 @@ namespace skydiveLogs_api.DomainBusiness
return allStats;
}
+ ///
+ /// Resets the aircraft statistics.
+ ///
public void Reset()
{
_statsByAircraftRepository.Delete(_identityService.ConnectedUser);
@@ -65,4 +72,4 @@ namespace skydiveLogs_api.DomainBusiness
#endregion Private Fields
}
-}
\ No newline at end of file
+}
diff --git a/Back/skydiveLogs-api.DomainBusiness/StatsByDzService.cs b/Back/skydiveLogs-api.DomainBusiness/StatsByDzService.cs
index c8046b4..bafac32 100644
--- a/Back/skydiveLogs-api.DomainBusiness/StatsByDzService.cs
+++ b/Back/skydiveLogs-api.DomainBusiness/StatsByDzService.cs
@@ -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
+ ///
+ /// Retrieves statistics grouped by drop zone.
+ ///
+ /// A collection of StatsByDz entities containing the statistics.
public IEnumerable GetStats()
{
var allStats = _statsByDzRepository.GetAll(_identityService.ConnectedUser);
@@ -50,6 +54,9 @@ namespace skydiveLogs_api.DomainBusiness
return allStats;
}
+ ///
+ /// Resets the drop zone statistics.
+ ///
public void Reset()
{
_statsByDzRepository.Delete(_identityService.ConnectedUser);
@@ -65,4 +72,4 @@ namespace skydiveLogs_api.DomainBusiness
#endregion Private Fields
}
-}
\ No newline at end of file
+}
diff --git a/Back/skydiveLogs-api.DomainBusiness/StatsByGearService.cs b/Back/skydiveLogs-api.DomainBusiness/StatsByGearService.cs
index 90d045c..7ff5447 100644
--- a/Back/skydiveLogs-api.DomainBusiness/StatsByGearService.cs
+++ b/Back/skydiveLogs-api.DomainBusiness/StatsByGearService.cs
@@ -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
+ ///
+ /// Retrieves statistics grouped by gear.
+ ///
+ /// A collection of StatsByGear entities containing the statistics.
public IEnumerable GetStats()
{
var allStats = _statsByGearRepository.GetAll(_identityService.ConnectedUser);
@@ -50,6 +54,9 @@ namespace skydiveLogs_api.DomainBusiness
return allStats;
}
+ ///
+ /// Resets the gear statistics.
+ ///
public void Reset()
{
_statsByGearRepository.Delete(_identityService.ConnectedUser);
@@ -65,4 +72,4 @@ namespace skydiveLogs_api.DomainBusiness
#endregion Private Fields
}
-}
\ No newline at end of file
+}
diff --git a/Back/skydiveLogs-api.DomainBusiness/StatsByJumpTypeService.cs b/Back/skydiveLogs-api.DomainBusiness/StatsByJumpTypeService.cs
index 831016e..42121ce 100644
--- a/Back/skydiveLogs-api.DomainBusiness/StatsByJumpTypeService.cs
+++ b/Back/skydiveLogs-api.DomainBusiness/StatsByJumpTypeService.cs
@@ -23,6 +23,10 @@ namespace skydiveLogs_api.DomainBusiness
#region Public Methods
+ ///
+ /// Retrieves statistics grouped by jump type.
+ ///
+ /// A collection of StatsByJumpType entities containing the statistics.
public IEnumerable GetStats()
{
var allStats = _statsByJumpTypeRepository.GetAll(_identityService.ConnectedUser);
@@ -50,6 +54,9 @@ namespace skydiveLogs_api.DomainBusiness
return allStats;
}
+ ///
+ /// Resets the year and jump type statistics.
+ ///
public void Reset()
{
_statsByJumpTypeRepository.Delete(_identityService.ConnectedUser);
@@ -65,4 +72,4 @@ namespace skydiveLogs_api.DomainBusiness
#endregion Private Fields
}
-}
\ No newline at end of file
+}
diff --git a/Back/skydiveLogs-api.DomainBusiness/StatsByYearByJumpTypeService.cs b/Back/skydiveLogs-api.DomainBusiness/StatsByYearByJumpTypeService.cs
index 1920469..872e0d0 100644
--- a/Back/skydiveLogs-api.DomainBusiness/StatsByYearByJumpTypeService.cs
+++ b/Back/skydiveLogs-api.DomainBusiness/StatsByYearByJumpTypeService.cs
@@ -23,6 +23,10 @@ namespace skydiveLogs_api.DomainBusiness
#region Public Methods
+ ///
+ /// Retrieves statistics grouped by year and jump type.
+ ///
+ /// A collection of StatsByYearByJumpType entities containing the statistics.
public IEnumerable GetStats()
{
var allStats = _statsByYearByJumpTypeRepository.GetAll(_identityService.ConnectedUser);
@@ -51,6 +55,9 @@ namespace skydiveLogs_api.DomainBusiness
return allStats;
}
+ ///
+ /// Resets the last year by jump type statistics.
+ ///
public void Reset()
{
_statsByYearByJumpTypeRepository.Delete(_identityService.ConnectedUser);
@@ -66,4 +73,4 @@ namespace skydiveLogs_api.DomainBusiness
#endregion Private Fields
}
-}
\ No newline at end of file
+}
diff --git a/Back/skydiveLogs-api.DomainBusiness/TunnelService.cs b/Back/skydiveLogs-api.DomainBusiness/TunnelService.cs
index da89339..80cebed 100644
--- a/Back/skydiveLogs-api.DomainBusiness/TunnelService.cs
+++ b/Back/skydiveLogs-api.DomainBusiness/TunnelService.cs
@@ -24,11 +24,20 @@ namespace skydiveLogs_api.DomainBusiness
#region Public Methods
+ ///
+ /// Retrieves all tunnels.
+ ///
+ /// A collection of Tunnel entities containing all tunnels.
public IEnumerable GetAllTunnels()
{
return GetAllRefTunnels();
}
+ ///
+ /// Retrieves a tunnel by its ID.
+ ///
+ /// The tunnel ID to retrieve.
+ /// A Tunnel entity containing the tunnel details.
public Tunnel GetTunnelById(int id)
{
var allTunnels = GetAllRefTunnels();
@@ -70,4 +79,4 @@ namespace skydiveLogs_api.DomainBusiness
#endregion Private Fields
}
-}
\ No newline at end of file
+}