using adas_core.Domain.Models.MongoModels;

namespace adas_core.Application.Repositories.Interfaces;

public interface IConfigUnitsRepository : IMongoRepository<ConfigUnits>
{
    /// <summary>
    /// Asynchronously retrieves a <see cref="ConfigUnits"/> entity by its unique identifier.
    /// Returns <c>null</c> when no matching configuration unit is found.
    /// </summary>
    /// <param name="id">The unique identifier of the configuration unit to look up.</param>
    /// <returns>A task that represents the asynchronous operation, containing the matching <see cref="ConfigUnits"/> or <c>null</c> if no entity is found.</returns>
    Task<ConfigUnits?> FindById(string id);
}