Files
PyroFetes-Sujet1/PyroFetes/Specifications/Products/GetProductByIdSpec.cs
2026-03-26 15:35:11 +01:00

14 lines
319 B
C#

using Ardalis.Specification;
using PyroFetes.Models;
namespace PyroFetes.Specifications.Products;
public sealed class GetProductByIdSpec : Specification<Product>
{
public GetProductByIdSpec(int? productId)
{
Query
.Where(p => p.Id == productId)
.Include(p => p.Prices);
}
}