Add comments by AI
This commit is contained in:
@@ -24,11 +24,20 @@ namespace skydiveLogs_api.DomainBusiness
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves all tunnels.
|
||||
/// </summary>
|
||||
/// <returns>A collection of Tunnel entities containing all tunnels.</returns>
|
||||
public IEnumerable<Tunnel> GetAllTunnels()
|
||||
{
|
||||
return GetAllRefTunnels();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a tunnel by its ID.
|
||||
/// </summary>
|
||||
/// <param name="id">The tunnel ID to retrieve.</param>
|
||||
/// <returns>A Tunnel entity containing the tunnel details.</returns>
|
||||
public Tunnel GetTunnelById(int id)
|
||||
{
|
||||
var allTunnels = GetAllRefTunnels();
|
||||
@@ -70,4 +79,4 @@ namespace skydiveLogs_api.DomainBusiness
|
||||
|
||||
#endregion Private Fields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user