rama creada apartir de master en j
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user