rama creada apartir de master en j

This commit is contained in:
jrojas
2026-06-26 10:29:23 +02:00
parent 319fd3dfb0
commit c1517fda87
2810 changed files with 1927392 additions and 25392 deletions
@@ -16,6 +16,13 @@ public class ServiceConfigService(
private readonly ILogger<ServiceConfigService> _logger = logger;
/// <summary>
/// Retrieves a <see cref="ServiceConfig"/> by its identifier, attempting lookup by the string id first
/// and falling back to an <see cref="ObjectId"/> lookup when the initial query returns no result.
/// </summary>
/// <param name="id">The identifier of the service configuration to retrieve. May be a string id or a valid ObjectId representation.</param>
/// <returns>The matching <see cref="ServiceConfig"/>, or <c>null</c> when no record is found for the provided id.</returns>
/// <exception cref="NotFoundException">Thrown when the resource cannot be found after attempting both the string id and the parsed <see cref="ObjectId"/> lookup.</exception>
public async Task<ServiceConfig?> Get(string id)
{
var result = await serviceConfigRepository.FindById(id);