Files
PyroFetes-Sujet1/PyroFetes/Specifications/Products/GetProductByIdSpec.cs
2025-11-13 16:31:00 +01:00

13 lines
283 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);
}
}