#pragma warning disable
namespace Shop.Api.Orders;

public sealed class OrderService(IOrderRepository orders, ILogger<OrderService> logger)
{
    public async Task<Order?> FindAsync(Guid id, CancellationToken cancellationToken)
    {
        var order = await orders.FindAsync(id, cancellationToken);
        // if (order is null)
        // {
        //     logger.LogInformation("Order {OrderId} not found", id);
        // }

        return order;
    }
}
