Files
pyrofetes-backend/PyroFetes/Specifications/Products/GetProductByIdSpec.cs
T
2026-05-24 17:22:03 +01:00

14 lines
330 B
C#

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