Files
PyroFetes-Sujet1/PyroFetes/Specifications/Suppliers/GetSupplierByIdSpec.cs
T
2026-05-24 17:22:03 +01:00

15 lines
379 B
C#

using Ardalis.Specification;
using PyroFetes.Models;
namespace PyroFetes.Specifications.Suppliers;
public sealed class GetSupplierByIdSpec : SingleResultSpecification<Supplier>
{
public GetSupplierByIdSpec(int? supplierId)
{
Query
.Include(x => x.Prices!)
.ThenInclude(p => p.Product)
.Where(x => x.Id == supplierId);
}
}